Paypal NVP with IPN for confirmation - what links them together

I am using PayPal with the NVP API (using PHP) for express validation. I create an account record in the database before redirecting the user to Paypal. In case the user does not return to my site after processing, I use the IPN to confirm the purchase, and then update the account record confirming payment. I'm still in sandbox mode and trying to figure out how I will link the transaction that started with NVP to the confirmation I receive with IPN.

I need to check if "PAYMENTREQUEST_n_INVNUM" will be sent to the NVP as the "invoice" in the IPN message.

It seems like I cannot verify this until I live, since the Sandbox IPN does not seem to be active with Sandbox transactions initiated by NVP - is this correct?

Thank you for your help.

+5
source share
2 answers

You can check it out in the Sandbox. But if you use "PayPal NVP", I assume that you use PayPal Express Checkout and call the API SetExpressCheckoutand DoExpressCheckoutPayment.
In this case, you really do not need an IPN, because the transaction will only be completed after the call DoExpressCheckoutPayment.

In other words, buyers will always be redirected to the RETURNURL you specified in SetExpressCheckout, and the transaction is completed (or not) when you call back DoExpressCheckoutPaymenton this page.

, GetExpressCheckoutDetails , ( GET RETURNURL).

, PAYMENTSTATUS=Completed API DoExpressCheckoutPayment, , .

+6

- useraction = commit.

- , IPN Sandbox NVP IPN. , PAYMENTREQUEST_0_INVNUM "INVOICE" POST IPN.

, paypal, / - .

0

All Articles