Credit Card Payment Failing With Woocommerce Payment Gateway
-
When some users are trying to make a purchase through Woocommerce Paymenygateway powered by stripe, they are getting a failed order.
Looking at the logs this is what I see:
ERROR Error: You cannot confirm this PaymentIntent because it’s missing a payment method. To confirm the PaymentIntent with cus_[REDACTED], specify a payment method attached to this customer along with the customer ID. (payment_intent_unexpected_state)
The Payment Method does appear to be missing the in log, but how is this even possible? When I test, I can’t even submit an order without there being card information entered.
Log:
2020-06-19T19:35:18+00:00 INFO REQUEST POST https://public-api.wordpress.com/wpcom/v2/sites/%s/wcpay/intentions
2020-06-19T19:35:18+00:00 INFO BODY: ‘{“test_mode”:false,”amount”:3237,”currency”:”usd”,”confirm”:”true”,”payment_method”:””,”customer”:”[REDACTED]”,”capture_method”:”automatic”,”metadata”:{“customer_name”:”[REDACTED]”,”customer_email”:”[REDACTED]”,”site_url”:”https:\\/\\/weprotect.me”,”[REDACTED]},”level3″:{“merchant_reference”:”[REDACTED]”,”shipping_amount”:787,”line_items”:[{“product_code”:”41″,”product_description”:”[REDACTED]”,”unit_cost”:245,”quantity”:10,”tax_amount”:0,”discount_amount”:0}],”shipping_address_zip”:”[REDACTED]”,”shipping_from_zip”:”[REDACTED]”}}’
2020-06-19T19:35:19+00:00 ERROR Error: You cannot confirm this PaymentIntent because it’s missing a payment method. To confirm the PaymentIntent with [REDACTED], specify a payment method attached to this customer along with the customer ID. (payment_intent_unexpected_state)
2020-06-19T20:12:06+00:00 INFO REQUEST GET https://public-api.wordpress.com/wpcom/v2/sites/%s/wcpay/accounts?test_mode=0
2020-06-19T20:12:07+00:00 INFO RESPONSE array (
‘account_id’ => ‘[REDACTED]’,
‘live_publishable_key’ => ‘[REDACTED]’,
‘test_publishable_key’ => ‘[REDACTED]’,
‘is_live’ => true,
‘has_pending_requirements’ => false,
‘has_overdue_requirements’ => false,
‘current_deadline’ => NULL,
‘status’ => ‘complete’,
‘payments_enabled’ => true,
‘deposits_status’ => ‘weekly’,
)
- The topic ‘Credit Card Payment Failing With Woocommerce Payment Gateway’ is closed to new replies.