• Hi
    I’m having issues with orders failing randomly. I’ve had 4 in the last 24 hours and I’m trying to figure out the reason for them failing. The order page just displays the message:

    Error processing payment. Reason: Order status changed from Pending payment to Failed.

    Looking in stripe logs I see this message, but I’m not sure what it means and doesn’t mention it failed. Any help appreciated…

    Request POST body
    {
      "billing_details": {
        "email": "xxx",
        "phone": "xxx"
      },
      "type": "card",
      "key": "pk_live_*********************************************************************************************ZlAbTK",
      "card": {
        "token": "tok_1LuFbEGl7epU2d9bxuTM4RhE"
      },
      "payment_user_agent": "stripe.js/c8b8c6168; stripe-js-v3/c8b8c6168",
      "_stripe_version": "2022-08-01",
      "time_on_page": "23202",
      "_stripe_account": "xxxxxxxxxxxxx"
    }
    Response body
    {
      "id": "xxxxxxxxxxxxxx",
      "object": "payment_method",
      "billing_details": {
        "address": {
          "city": "xxx",
          "country": "GB",
          "line1": "xxx",
          "line2": "",
          "postal_code": "xxx",
          "state": "xx"
        },
        "email": "xxx",
        "name": "xxx",
        "phone": "xxx"
      },
      "card": {
        "brand": "visa",
        "checks": {
          "address_line1_check": null,
          "address_postal_code_check": null,
          "cvc_check": null
        },
        "country": "GB",
        "exp_month": xx,
        "exp_year": xxxx,
        "funding": "debit",
        "generated_from": null,
        "last4": "xxxx",
        "networks": {
          "available": [
            "visa"
          ],
          "preferred": null
        },
        "three_d_secure_usage": {
          "supported": true
        },
        "wallet": {
          "apple_pay": {
          },
          "dynamic_last4": "xxxx",
          "type": "apple_pay"
        }
      },
      "created": 1666098773,
      "customer": null,
      "livemode": true,
      "type": "card"
    }
    Request POST body
    {
      "key": "pk_live_*********************************************************************************************ZlAbTK",
      "pk_token_payment_network": "Visa",
      "pk_token": "******",
      "pk_token_transaction_id": "xxxxxxxxxxxxxxxxx",
      "card": {
        "address_line2": "",
        "address_country": "GB",
        "address_state": "xxx",
        "address_line1": "xxx",
        "address_zip": "xxx",
        "address_city": "xxxx",
        "name": "xxxxx"
      },
      "muid": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
      "_stripe_version": "2022-08-01",
      "payment_user_agent": "stripe.js/c8b8c6168; stripe-js-v3/c8b8c6168",
      "sid": "xxxxxxxxxxxxxxxxx",
      "guid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "_stripe_account": "xxxx",
      "pk_token_instrument_name": "Visa xxxx",
      "time_on_page": "22637"
    }
    Response body
    {
      "id": "xxx",
      "object": "token",
      "card": {
        "id": "xxx",
        "object": "card",
        "address_city": "xxx",
        "address_country": "GB",
        "address_line1": "xxx",
        "address_line1_check": "unchecked",
        "address_line2": "",
        "address_state": "xxx",
        "address_zip": "xxx",
        "address_zip_check": "unchecked",
        "brand": "Visa",
        "country": "GB",
        "cvc_check": null,
        "dynamic_last4": "xxxx",
        "exp_month": xx,
        "exp_year": xxxx,
        "funding": "debit",
        "last4": "xxxx",
        "name": "xxxx",
        "tokenization_method": "apple_pay"
      },
      "client_ip": "xxx",
      "created": 1666098772,
      "livemode": true,
      "type": "card",
      "used": false
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @heather1202

    Do the Stripe logs not show any API error’s like 402, 400 etc? If not, it seems the issue is related to a plugin you have on your site that’s possibly throwing an error during the payment process.

    I’d review the list of plugins that you have updated recently. Perform some test payments and see if you can replicate the error.

    Typically when an issue comes up suddenly, it’s because something changed on your site.

    Kind Regards,

    Thread Starter heather1202

    (@heather1202)

    Thanks, no 402 errors or anything showing. Though I’ve just had it happen with a paypal payment, so it isn’t stripe which is the issue.

    Changes to the site were monday we had hundreds of failed orders (spam) and we installed woocommerce recapatcha, I’ll keep investigating.

    Thanks
    Heather

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘failed orders’ is closed to new replies.