PayPal Adaptive Payments: ExecutePayment returns payKey AP-XXXX has already been used to make a payment

340 views Asked by At

I first call the Pay API with actionType=CREATE and only after user has been redirected to my returnUrl i'm calling the ExecutePayment API with the pay_key received at first Pay call.

PP returns this error message: payKey AP-XXXX has already been used to make a payment

Does anyone know what could trigger this error and how to solve it?

Thanks

1

There are 1 answers

0
Tobias J. On

You are doing an explicit payment (redirecting the user to the PaPal website) and therefore the confirmation of the user leads to the execution of the payment. Take a look here: https://stackoverflow.com/a/29473433/1536921