• Resolved Memomon

    (@4samy)


    Hello,
    I have a problem that I have repeatedly tried to solve, but I have not been able to find a solution for it at all. Some clients, but not all.
    When paying by stripe, payment is made successfully, but without creating a new order. Find in log.

    2022-07-28T20:42:15+00:00 ERROR Could not complete payment for payment_intent pi_2LQdV5A6RNYnViXw1MqQ2Pxl. No order ID was found in your WordPress database.
    2022-07-28T20:42:15+00:00 INFO Webhook notification received: Event: charge.succeeded

    Please solve this problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    @4samy

    That error message is not indicative of a problem within the plug-in. More than likely you are using the same stripe account across multiple websites. Stripe sends webhook events to all of the configured webhook URLs for an account.

    So when you receive an order on website A, Stripe sends the same webhook event to website A and B if there are webhook urls for them.

    That is why Stripe recommends that you have one website per account. Adding a new account is trivial, all you have to do is click the add account option in the upper left-hand corner of the stripe.com dashboard.

    Kind regards

    Thread Starter Memomon

    (@4samy)

    Thank you for following up on this issue
    These requests are from an application built on the flutter platform
    Depends on your plugin
    With only one website

    Plugin Author Payment Plugins

    (@mrclayton)

    Depends on your plugin
    With only one website

    Can you please clarify what you mean by that statement?

    When I say one website for an account I am referring to one e-commerce website. That is the website where the order is originating from. If you have multiple websites that are creating orders, stripe is going to send webhooks to each one of those websites. Of course this is not an issue if you have multiple websites configured for separate processes like a fulfillment website that is receiving instructions, not generating an order.

    Thread Starter Memomon

    (@4samy)

    I mean I don’t have more than one website, it’s only one website
    Why is this error happening to me?

    Plugin Author Payment Plugins

    (@mrclayton)

    Why is this error happening to me?

    I’ll need some help from you in order to a best answer that question.

    Are you modifying the order_id property of the metadata perhaps or removing metadata using the Stripe plugin filters?

    Are you testing on a localhost like a laptop? If you’re using the same Stripe account for doing test orders on a local machine or a staging website, then the webhook is going to the url configured for the account.

    If you go to the stripe.com > developers > events page you can see the webhook that triggered that log entry. Look at the body of the request, specifically the metadata. Is there an order_id property in the metadata?

    Thread Starter Memomon

    (@4samy)

    Are you modifying the order_id property of the metadata perhaps or removing metadata using the Stripe plugin filters?
    No

    Are you testing on a localhost like a laptop? If you’re using the same Stripe account for doing test orders on a local machine or a staging website, then the webhook is going to the url configured for the account.
    No

    If you go to the stripe.com > developers > events page you can see the webhook that triggered that log entry. Look at the body of the request, specifically the metadata. Is there an order_id property in the metadata?
    Yes
    but “order”: null,

    Plugin Author Payment Plugins

    (@mrclayton)

    The order ID being null is the source of your problem. What payment method is this for? Is it just credit cards or is it a local payment method?

    The Stripe Plugin always populates the order ID metadata. So the fact that it is null is very strange. The stripe plug-in never processes a payment unless there is an order because that’s where all the information comes from. So there is definitely an order somewhere.

    Of all the tens of thousands of merchants we have we’ve never had this issue reported so I’d recommend taking a closer look at all of the plug-ins you’re using. Or see if you have some custom snippet of code.

    That webhook is only relevant for non card payments. It’s not needed for credit cards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘No order ID was found in your WordPress’ is closed to new replies.