Payment Error: PayPal Error: Invalid request. See details. (VALIDATION_ERROR) Paypal

I work with regular PayPal payments in my project. And I want to give one free trial for a certain period of time, and the amount of the initial order should be zero, after the free trial completes the actual amount of the order, it is deducted from the account.

For example, a user buys one product ($ 100 US dollars) and applies a discount code for a free trial, then the first order must be placed with $ 0 USD, after the trial version is launched.

For this, I pass "0" to setup_feein MerchantPreferences:

merchant_preferences = new MerchantPreferences
{
    return_url = url,
    cancel_url = url,
    auto_bill_amount = "YES",
    setup_fee = new PayPal.Api.Currency
    {
        currency = currency != null ? currency.CurrencyCode : null,
        value = "0.00"
    }
}

But this gives me an error:

: PayPal: . . (VALIDATION_ERROR)
:

: amount.currency .

0.00, , .

- , ?

+6
1

"" "". , null currency Note, 0? , , currency - null currency.CurrencyCode - null, null, PayPal .

, , ~ 1 , 0, , .

0

All Articles