craftcms / commerce-paypal-checkout

PayPal Checkout gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-paypal-checkout
MIT License
5 stars 10 forks source link

Fixed error when using authorize payment type #12

Closed jmauzyk closed 4 years ago

jmauzyk commented 4 years ago

Got the following error when using PayPal with payment type set to authorize:

Expected intent from order api call to be capture, got authorize. Please ensure you are passing intent=authorize to the sdk url.

Need to append &intent=authorize to the sdk URL when registering the JS file.

nfourtythree commented 4 years ago

Hi

Thank you for this, I need to make some other changes ahead of looking at #14

So they have been made on the develop branch, will close this PR.

Thanks.