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

Order with Payment received when Hosted Fields transaction is declined #88

Closed
Dinamiko opened this issue Nov 19, 2020 · 0 comments · Fixed by #89
Closed

Order with Payment received when Hosted Fields transaction is declined #88

Dinamiko opened this issue Nov 19, 2020 · 0 comments · Fixed by #89
Assignees
Labels
bug Something isn't working

Comments

@Dinamiko
Copy link
Contributor

When a Hosted Fields transaction is declined, the API call responds with a 201 status code, but will include purchase_units -> payments -> captures -> status (Documentation link)

Since this acts differently than PayPal payments, it looks like this wasn’t implemented to check for, so these transactions are being marked as completed. This can cause merchants to ship out items, but not having been paid.

To reproduce

  1. In Settings Payments enable PayPal Card Processing
  2. Add product to cart and go to Checkout page
  3. In Billing details First name use: CCREJECT-INVALID
  4. Select credit card as payment and fill the fields
  5. Place order

Expected behavior

Once order is received the order status should be On hold.

What happened instead

Once order is received the order status is Processing with a Payment received Order note.

Environment:

  • WordPress Version 5.5.3
  • WooCommerce Version 4.6.1
  • WooCommerce PayPal Payments Plugin Version 1.0.2
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
1 participant