Support » Plugin: WooCommerce Stripe Payment Gateway » payment failed

  • Resolved peterami

    (@peterami)


    Hi guys,

    pretty much exclusively with Stripe I frequently (more often than not) see failed payments. When I go to the payment page myself, the system tells me that the product is out of stock, although stock management has always been disabled and is not an issue when using paypal.

    I have deactivated the caching plugin, my php version is up to date (7.2) and I have already checked the page about conflicting scripts.

    https://screenshots.firefox.com/UZAqAxVXYcAY0RBz/www.aramtraining.com

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author royho

    (@royho)

    Hello,

    So Stripe has no logic of checking if a product has stock or not. So I don’t think it is related?

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @peterami

    As Roy mentioned, stock issues wouldn’t be related to Stripe, but I’m unsure why you are only seeing this issue using Stripe.

    What this does sound like though is that this is likely caused by a conflict with your theme or with another plugin. Read more about plugin and theme conflicts in our Self-Service Guide.

    For more detailed instructions about conflict testing, check out this – How to test for plugin and theme conflicts.

    Since this isn’t part of the core functionality of the Stripe extension, I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

    I am having this same issue, I believe what is happening is instead of giving the customer the card declined message they are getting an out of stock message. Stock is also disabled on my site.

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @dmorton91

    Thanks for the extra thought here.

    I believe what is happening is instead of giving the customer the card declined message they are getting an out of stock message

    If stock is disabled on a site and this message is coming up then this backs up my thoughts that there is a conflict happening somewhere.

    To confirm is this is payment declined, I’d recommend also turning on debug logging in the Stripe settings page.

    Next time the error happens when using Stripe, you can check the logs to see what Stripe thinks about the transaction.

    But I would also recommend the conflict troubleshooting as this will confirm what is causing the incorrect message (if it is that) to show.

    Let me know how you get on @peterami @dmorton91

    Thanks,

    Below is the log and screenshot of the error (I replaced customer info with XXXX):

    https://www.dropbox.com/s/jyc1orh5dwqm3tz/psNO0zLqHRZeskMy-NF5cAasp461PWZCkg.png?dl=0

    2018-11-13T10:34:34+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers request: Array
    (
    [email] => XXXX
    [description] => Name: XXXX
    [metadata] => Array
    (
    )

    )

    ====End Log====

    2018-11-13T10:34:35+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    sources/src_XXXX
    ====End Log====

    2018-11-13T10:34:35+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    Info: Begin processing payment for order 38729 for the amount of 606.00
    ====End Log====

    2018-11-13T10:34:35+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    charges request: Array
    (
    [currency] => usd
    [amount] => 60600
    [description] => US Pump Parts – Order 38729
    [statement_descriptor] => US Pump Parts
    [capture] => true
    [expand[]] => balance_transaction
    [metadata] => Array
    (
    [customer_name] => XXXX
    [customer_email] => XXXX
    [order_id] => 38729
    )

    [customer] => cus_XXXX
    [source] => src_XXXX
    )

    ====End Log====

    2018-11-13T10:34:37+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    Error: stdClass Object
    (
    [error] => stdClass Object
    (
    [charge] => ch_XXXX
    [code] => card_declined
    [decline_code] => stolen_card
    [doc_url] => https://stripe.com/docs/error-codes/card-declined
    [message] => Your card was declined.
    [type] => card_error
    )

    )

    ====End Log====

    2018-11-13T10:35:33+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T10:35:34+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T10:35:36+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T10:35:36+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T10:35:42+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T10:35:43+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T12:18:33+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

    2018-11-13T12:18:34+00:00 DEBUG
    ====Stripe Version: 4.1.12====
    ====Start Log====
    customers/cus_XXXX/sources request: Array
    (
    [limit] => 100
    )

    ====End Log====

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘payment failed’ is closed to new replies.