• Resolved gerd.neumann

    (@gerdneumann)


    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gerd.neumann

    (@gerdneumann)

    PS Nitpicking: Would be great if the time code in the log would be https://en.wikipedia.org/wiki/ISO_8601 For instance, not 05-14-2018 but 2018-05-14. This makes reading the log (and maybe sorting) much easier.

    Well, like it’s in all log files I know of ??

    Plugin Contributor royho

    (@royho)

    Hi,

    Were you able to reproduce this yourself perhaps in test mode? If not, please test that and see what you actually get.

    Thread Starter gerd.neumann

    (@gerdneumann)

    Hey royho,

    thanks for answering.

    Were you able to reproduce this yourself perhaps in test mode? If not, please test that and see what you actually get.

    As said in the above mail this happened when a customer tried to order with his data. Not sure if he entered some quirky data, but it is just iban and account name, so it should be hard to do (entering) something wrong.

    It only happened for him. I see this error the first time. What you suggest is not possible: I do not know exactly what the customer entered and also the customer has no access to test mode.

    I thought you could tell from the log what’s gone wrong. It looks like it was a wrong request, so the plugin’s fault. Even with the customer entering fishy data, this should not happen (and be caught). Doesn’t the log tell you what went wrong? I cannot make much sense out of it.

    I could try asking the customer what he entered and what browser and OS he uses, but rather not bother him unless really necessary. Even so, do you have any suggestion what I should ask him?

    • This reply was modified 6 years, 6 months ago by gerd.neumann.
    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @gerdneumann

    It only happened for him. I see this error the first time. What you suggest is not possible: I do not know exactly what the customer entered and also the customer has no access to test mode.

    If this hasn’t happened again, it could be user error.

    What I’d recommend is looking out for this happening again and capturing as many details from the customer as possible.

    Thanks,

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @gerdneumann

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Failed SEPA order: Stripe “invalid_request_error” with code”parameter_missing”’ is closed to new replies.