Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a saved card with Authorization Intent, it showed an error on checkout, but PayPal API shows the transaction was approved. #270

Closed
Dinamiko opened this issue Sep 22, 2021 · 0 comments · Fixed by #287
Labels
bug Something isn't working
Milestone

Comments

@Dinamiko
Copy link
Contributor

Dinamiko commented Sep 22, 2021

Bug description

When using a saved card with Authorization Intent, it showed an error on checkout, but PayPal API shows the transaction was approved. The checkout page returned with the generic “Error, something went wrong” etc.

POST https://api.sandbox.paypal.com/v2/checkout/ordersRequest 
Body: {"intent":"AUTHORIZE","purchase_units" ... ,
"payment_source":{"token":{"id":"abc123","type":"PAYMENT_METHOD_TOKEN","source":{"card":{"last_digits":"7890","brand":"MASTERCARD"}}}}}
Response: [code] => 201 [message] => Created

Steps to reproduce

  • In PayPal Checkout Settings select Authorize as Intent.
  • Add a product and go to Checkout.
  • Place order using a saved credit card.

Expected behaviour

  • Order placed correctly.
  • Able to capture the authorized payment:
    capture

Environment
Woocommerce Version : WooCommerce 5.6.0
WooCommerce PayPal Payments 1.6.0 - test
WordPress version: v5.8.1

@Dinamiko Dinamiko added the bug Something isn't working label Sep 22, 2021
@isabellainpsyde isabellainpsyde added this to the Release 1.6.0 milestone Sep 27, 2021
@Dinamiko Dinamiko changed the title Using a saved card, it showed an error on checkout, but PayPal API shows the transaction was approved. Using a saved card with Authorization Intent, it showed an error on checkout, but PayPal API shows the transaction was approved. Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants