Failed SEPA order: Stripe “invalid_request_error” with code”parameter_missing”
-
Hi,
we got a “Failed order” (email) from a customer who wanted to pay with SEPA. The customer told us that this happened the second time (he already tried to order with Sepa some time ago (he says) – but I am not sure this is true, as our log goes back to beginning of 2018 when we first installed Stripe sepa and his name does not turn up…).
Anyway, I looked into the
woocommerce-gateway-stripe-<hash>.log
file to see what’s going on and what caught my eye is this in particular:Error: stdClass Object ( [error] => stdClass Object ( [code] => parameter_missing [doc_url] => https://stripe.com/docs/error-codes/parameter-missing [message] => Must provide source or customer. [type] => invalid_request_error ) )
Here's the full log with anonymized customer name/data:
05-14-2018 @ 09:41:42 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:42 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:44 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:44 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:46 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:46 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:50 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:50 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:55 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:55 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:55 - ====Stripe Version: 4.1.2==== ====Start Log==== Info: Begin processing payment for order 99999 for the amount of 29.50 ====End Log==== 05-14-2018 @ 09:41:55 - ====Stripe Version: 4.1.2==== ====Start Log==== charges request: Array ( [currency] => eur [amount] => 2950 [description] => Our Shopname - Bestellung 99999 [statement_descriptor] => Our Shopname [expand[]] => balance_transaction [metadata] => Array ( [customer_name] => firstname lastname [customer_email] => [email protected] [order_id] => 99999 ) ) ====End Log==== 05-14-2018 @ 09:41:56 - ====Stripe Version: 4.1.2==== ====Start Log==== Error: stdClass Object ( [error] => stdClass Object ( [code] => parameter_missing [doc_url] => https://stripe.com/docs/error-codes/parameter-missing [message] => Must provide source or customer. [type] => invalid_request_error ) ) ====End Log==== 05-14-2018 @ 11:54:11 - ====Stripe Version: 4.1.2==== ====Start Log==== sources/src_1CRxxxxxxxxxxxxxxxxx... ====End Log==== 05-14-2018 @ 11:54:11 - ====Stripe Version: 4.1.2==== ====Start Log==== customers request: Array ( [email] => [email protected] [description] => firstname lastname [metadata] => Array ( ) ) ====End Log==== 05-14-2018 @ 11:54:12 - ====Stripe Version: 4.1.2==== ====Start Log==== customers/cus_CrM5UXJE1sT1Cl/sources request: Array ( [source] => src_1CRxxxxxxxxxxxxxxxxx... ) ====End Log==== 05-14-2018 @ 11:54:13 - ====Stripe Version: 4.1.2==== ====Start Log==== customers/cus_CrM5UXJE1sT1Cl request: Array ( [default_source] => src_1CRxxxxxxxxxxxxxxxxx... ) ====End Log====
I cannot really make sense of it, but https://stripe.com/docs/error-codes/parameter-missing really looks like the WC-Stripe plugin is sending a wrong request.
Moreover, and maybe not related, I do not understand why next to the error at 09:41 there's a source added at 11:54. Maybe the customer added his Sepa data to his WooCommerce shop account as payment method or so, not sure…
Any ideas on this?
- The topic ‘Failed SEPA order: Stripe “invalid_request_error” with code”parameter_missing”’ is closed to new replies.