moltin / js-sdk

JavaScript & Node.js SDKs for the Elastic Path Commerce Cloud eCommerce API
http://documentation.elasticpath.com/
MIT License
173 stars 77 forks source link

Payment status is not updating after getting successurl from payment gateway #28

Closed sahiliotasol closed 7 years ago

sahiliotasol commented 8 years ago

Using javascript - sdk

After redirecting to success url by making successful payment from payment gateway, its status is not updating in the Moltin and it remains as 'Unpaid' status.

can you please help me to resolve this issue?

AndreaPravato commented 8 years ago

This is critical and urgent for us

AndreaPravato commented 8 years ago

We are using Paypal Express

AndreaPravato commented 8 years ago

with a sandbox (test) paypal account

AJSturrock commented 8 years ago

Hey guys,

Once you get redirected back to your return_url from PayPal you will need to make an API call to update the order status to "paid" (make sure to include the order ID in the return_url so you have a reference!).

Unfortunately you won't be able to do this with clientside javascript and this won't automatically update stock levels.

We are looking into a way for users to set a PayPal IPN to a moltin URL instead so that we can get a payment confirmation from PayPal (right now we don't receive anything).

AndreaPravato commented 8 years ago

Hi! Thanks. Do you have an ETA for that feature?

AJSturrock commented 8 years ago

I've opened an internal issue and referenced this one. Will need to be assigned to a member of the team first before we can give any ETAs

AndreaPravato commented 8 years ago

@AJSturrock Are there news about ETA?