Hello @mashrur,
The vaulting API from PayPal currently does not support the token creation for zero-sum payments. This means the system cannot generate a token for eventual renewals unless some kind of first payment has been performed that stored a payment token.
For example, if your customer orders a regular product, then his PayPal account or credit card may be vaulted and saved for later use.
Sometime later, the same customer could “buy” a subscription with a free trial on your site because a token has already been created previously from his regular purchase.
This is probably why the free trial works for you in the sandbox, because a token has been stored before. If you try again with a new WordPress user that has no payment method vaulted, then the checkout should fail with the error you mentioned.
A new customer that has never ordered anything on your site will not be able to purchase a subscription that has a free trial unless you either add some kind of first payment like a sign-up fee or alternatively you can enable zero-sum checkouts in the WooCommerce Subscriptions settings. This setting would result in the customer having to manually pay after the free trial or upon the first renewal and doesn’t need to save a payment method when initially starting the subscription.
We are looking at alternative ways to potentially make free trials happen, but we have not yet found a solution that works reliably with no drawbacks.
PayPal is also working on adding this functionality to the vaulting API, but we don’t know when it will be ready.
Kind regards,
Niklas
Free trials will be possible at some point, but I can’t give any estimates as of now.
I will go ahead and close this thread due to inactivity. If any questions remain, feel free to let us know. Thanks!
Kind regards,
Niklas
Hi Niklas,
It’s an unfortunate drawback, regardless thanks a lot for your kind response.
Kind Regards
Mashrur
-
This reply was modified 4 years, 10 months ago by
mashrur.
Hi guys, i try to set up Chilean peso with paypal on woocommerce so it still bring me back this error,anyone can help me fix this issue please?
[UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-DECIMAL_PRECISION
@stecnico Please create your own thread instead of posting your unrelated question in this one. Thanks!
Regarding the original topic of this thread, there’s a small status update: We hope to be able to include support for free trials with an update around the end of January.
Kind regards,
Niklas