better_spree_paypal_express icon indicating copy to clipboard operation
better_spree_paypal_express copied to clipboard

No Handling for PayPal funding error 10486

Open mleglise opened this issue 9 years ago • 0 comments

When a user finishes on PayPal, and clicks "Pay Now" to redirect them back to Spree, then spree/gateway/pay_pal_express.rb calls do_express_checkout_payment and then pp_response.success?

If the user does not have enough money in their funding source to pay for the order, PayPal returns error 10486. The user is supposed to be redirected back to PayPal to resolve the issue with funding their purchase. Currently, the user gets dumped to the Spree store's homepage and left with no indication of anything working or failing. Their order is left in the "payment" state with a failed PayPal transaction.

https://developer.paypal.com/docs/classic/express-checkout/ht_ec_fundingfailure10486/

mleglise avatar Sep 10 '15 23:09 mleglise