Good evening everyone,
I am trying to implement the paypal REST API in a webapp and until now I have successfully charged a sandbox account with the amount I want. Now I wanted to check the card rejection errors and I cannot figure out completely the procedure to follow. Here is what I have done:
1) I activate in PayPal developer for the Sandbox application in "Features > Accept Payments" the "PayPal Here" checkbox to charge directly with credit card details (right or wrong ?)
2) I create a VISA credit card and I use this credit card's details with First Name = "CCREJECT-REFUSED" as described in the credit card generation page and last name something else. (the [Pay with bank account or Credit card] button appears only once in my check out process and never again - what is wrong with this?).
3) If I proceed I get the following in capture payment end point with Status 422 and the httpjob responds that "java.io.FileNotFoundException: C:\Users\hatzi\AppData\Local\Temp\8 (The system cannot find the file specified)". I do not get the desired response that has all the details of the rejection.
Can anyone point me on what am I doing wrong? Thanks in advance
I am trying to implement the paypal REST API in a webapp and until now I have successfully charged a sandbox account with the amount I want. Now I wanted to check the card rejection errors and I cannot figure out completely the procedure to follow. Here is what I have done:
1) I activate in PayPal developer for the Sandbox application in "Features > Accept Payments" the "PayPal Here" checkbox to charge directly with credit card details (right or wrong ?)
2) I create a VISA credit card and I use this credit card's details with First Name = "CCREJECT-REFUSED" as described in the credit card generation page and last name something else. (the [Pay with bank account or Credit card] button appears only once in my check out process and never again - what is wrong with this?).
3) If I proceed I get the following in capture payment end point with Status 422 and the httpjob responds that "java.io.FileNotFoundException: C:\Users\hatzi\AppData\Local\Temp\8 (The system cannot find the file specified)". I do not get the desired response that has all the details of the rejection.
Can anyone point me on what am I doing wrong? Thanks in advance
B4X:
ResponseError. Reason: , Response: {"name":"UNPROCESSABLE_ENTITY","details":[{"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":"4b0214b3afb13","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INSTRUMENT_DECLINED","rel":"information_link","method":"GET"},{"href":"https://www.sandbox.paypal.com/checkoutnow?token=65L90346A0404894J","rel":"redirect","method":"GET"}]}