Error processing payment
-
Hi,
Could you tell me why my site has this error when the customer tries to make a payment?
-
This topic was modified 1 year, 10 months ago by
Steven Stern (sterndata).
-
This topic was modified 1 year, 10 months ago by
devsimmao.
-
This topic was modified 1 year, 10 months ago by
-
Hi @devsimmao
If possible can you translate your request to English?
We are reviewing that error and it appears we will need to make an update to the plugin to accommodate this scenario. Can you confirm if the customer was using a credit card for their payment?
Do you offer any order bump or upsell products on your checkout page that would cause the order amount to change right before the customer places the order?
Kind Regards
I can’t tell you if the customer tried to pay with a credit card.
Regarding the value of the products, prices are fixed and in US dollars. There are no surcharges during order completion.
I activated the methods below at checkout:
Hi @devsimmao
Thanks for the screenshot. We are working on an update so this scenario is accounted for.
If you navigate to the WooCommerce > Status > Logs page there will be a “wc-ppcp” log file. Can you share with us the entry that corresponds to that customer’s failed payment? That will help us with development.
Kind Regards
2023-05-19T05:22:46+00:00 ERROR API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/15T62697HR6000634/capture [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => INSTRUMENT_DECLINED [description] => The instrument presented was either declined by the processor or bank, or it can't be used for this payment. ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => a84668fdd2645 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-INSTRUMENT_DECLINED [rel] => information_link [method] => GET ) [1] => Array ( [href] => https://www.paypal.com/checkoutnow?token=15T62697HR6000634 [rel] => redirect [method] => GET ) ) ) ) 2023-05-19T05:23:12+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-05-19T05:23:24+00:00 ERROR API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/15T62697HR6000634/capture [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => PAYER_CANNOT_PAY [description] => Payer cannot pay for this transaction. Please contact the payer to find other ways to pay for this transaction. ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 1b939624c8624 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-PAYER_CANNOT_PAY [rel] => information_link [method] => GET ) ) ) ) 2023-05-19T05:24:06+00:00 ERROR API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/15T62697HR6000634/capture [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => ORDER_NOT_APPROVED [description] => Payer has not yet approved the Order for payment. Please redirect the payer to the 'rel':'approve' url returned as part of the HATEOAS links within the Create Order call or provide a valid payment_source in the request. ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 174f42393e3fc [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-ORDER_NOT_APPROVED [rel] => information_link [method] => GET ) ) ) )
2023-05-17T17:09:03+00:00 ERROR Error creating PayPal order. Msg:Facturación Dirección de correo electrónico es un campo requerido. Params: Array ( [intent] => CAPTURE [payer] => Array ( [name] => Array ( [given_name] => xxxxx [surname] => xxxxx ) ) [purchase_units] => Array ( [0] => Array ( [amount] => Array ( [value] => 5.00 [currency_code] => USD [breakdown] => Array ( [item_total] => Array ( [currency_code] => USD [value] => 5.00 ) [shipping] => Array ( [currency_code] => USD [value] => 0 ) [tax_total] => Array ( [value] => 0.00 [currency_code] => USD ) [discount] => Array ( [value] => 0.00 [currency_code] => USD ) [handling] => Array ( [currency_code] => USD [value] => 0.00 ) ) ) [items] => Array ( [0] => Array ( [name] => xxxxx [quantity] => 1 [unit_amount] => Array ( [currency_code] => USD [value] => 5.00 ) [sku] => xxxxx [description] => Product ID: xxxxx ) ) ) ) [application_context] => Array ( [shipping_preference] => NO_SHIPPING [brand_name] => xxxxx ) ) 2023-05-17T19:04:35+00:00 ERROR API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/19G875567S8625826/capture [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => INSTRUMENT_DECLINED [description] => The instrument presented was either declined by the processor or bank, or it can't be used for this payment. ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => a90c7e1f8c292 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-INSTRUMENT_DECLINED [rel] => information_link [method] => GET ) [1] => Array ( [href] => https://www.paypal.com/checkoutnow?token=19G875567S8625826 [rel] => redirect [method] => GET ) ) ) ) 2023-05-17T19:05:08+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED
-
This reply was modified 1 year, 10 months ago by
devsimmao.
2023-05-16T02:46:34+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-05-16T02:46:36+00:00 INFO Webhook received. Event: PAYMENT.CAPTURE.COMPLETED 2023-05-16T06:34:18+00:00 INFO Webhook received. Event: CHECKOUT.ORDER.APPROVED 2023-05-16T06:34:21+00:00 ERROR API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/8K536625L15325410/capture [method] => POST [http_status] => 422 [request] => Array ( ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [issue] => PAYER_CANNOT_PAY [description] => Payer cannot pay for this transaction. Please contact the payer to find other ways to pay for this transaction. ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => d281245baf122 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-PAYER_CANNOT_PAY [rel] => information_link [method] => GET ) ) ) )
In the codes above, there are some errors that are occurring during the finalization of payments,
@devsimmao yes, PayPal is determining that the buyer needs to re-approve the order before the payment can be completed.
They don’t publish why the buyer would need to re-approve but we’ll need to add additional code to handle the scenario where a buyer needs to go through the approval process again.Hi @devsimmao
Can you use our contact us page so we can share a link to the update once we make the changes? We need help testing this scenario.
Kind Regards,
Thanks for your feedback. In that case, there’s nothing wrong with my website, right?
Yes, I will request the update link through your contact form.
Thanks so much for helping us find this issue. We’re going to work on a patch right now. If you want to test it before we push it to general release, I will share the link via this thread.
In that case, there’s nothing wrong with my website, right?
Correct, there isn’t anything wrong with your site.
Kind Regards
Yes, I would like to test it.
Hi @devsimmao
Here is a link to a patched version which you can test. Patched version
Please let us know if that resolves your issue.
Kind Regards
Thank you very much! If the issue is not resolved I’ll let you know.
-
This reply was modified 1 year, 10 months ago by
- The topic ‘Error processing payment’ is closed to new replies.