IPN vs actions.payment.execute() result

daslicht
Contributor
Contributor

Hello,

is it safe to ship a product once the actions.payment.execute().then(function() {...} in the onAutorize callback has been called or is it a 'better' idea to wait for the Instant Payment Notification ?

 

related:
https://developer.paypal.com/demo/checkout/#/pattern/confirm

 

Best regards Marc

Login to Me Too
2 REPLIES 2

daslicht
Contributor
Contributor

Ok instead of opening another tread,

 

how about the serverside intergration :

http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/ExecutePayment.html

 

I it safe to ship a product when the transaction complets successfully ?

It it as trustworthy as the IPN callback ?

Login to Me Too

daslicht
Contributor
Contributor
Finally I got an aswer to my question via the Ticket System :
 
The "approved" state just means the buyer logged into their account and approved the payment.  You still need to execute the payment request, which once you do check the "state" shown in the "related_resources" section and it should say "completed", which indicates the transaction amount has been captured.  The "id" shown below is the transaction identifier.
 
    "related_resources": [
                {
                    "sale": {
                        "id": "6CP443382P136134L",
                        "state": "completed",
                        "amount": {
                            "total": "7.47",
                            "currency": "USD",
 
 

Hope that helps someone else and saves time waiting for an answer....

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.