• Resolved nicolasmierbach

    (@nicolasmierbach)


    Hi!

    We’re currently trying to set up a headless Woocommerce using a stripe checkout. We would like to use the existing functionality of this plugin in handling the webhooks, updating the order etc. For this we would need to know how the webhooks make a connection to the order.

    We essentially thought of 2 ways this would be possible:

    Either we need to provide some identifier to the stripe checkout metadata that stripe sends to this plugin in the webhooks to identify itself

    Or we need to update the order metadata with some stripe provided identifier (checkout.session id?).

    Could someone help us with that question?

    Thanks a lot!

    Nico

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Nico,

    Thank you for reaching out to us. You’re on the right track thinking about identifiers. When Stripe sends webhook events, they include an event object that contains all the relevant information about the event, including any identifiers that are part of the event data. To connect a webhook event to an order in WooCommerce, you typically need to use the charge ID or payment intent ID that Stripe provides. This ID is sent as part of the webhook event data and should be stored in the order metadata when the order is created.

    Could you provide more details about where you’re getting stuck? For example, are you receiving the webhook events but not seeing the orders update, or are you unsure how to configure the webhook settings in Stripe or WooCommerce?

    Looking forward to your response!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter nicolasmierbach

    (@nicolasmierbach)

    Hey, sorry for my late response and thank you for the information!

    If I understand this correctly, I would have to:

    • Create a Stipe Checkout Session
    • Create a WooCommerce order
    • Set the Meta-Data on the WooCommerce to include the Stripe Checkout Session ID
    • Redirect the user to the checkout

    Then Stripe and the Plugin would take care of the rest.

    Correct?

    If so, what key would I have to set on the WooCommerce order? is it like

    { 
        stripe_order_id: [stripe_checkout_session_id]
     }

    Or something else?

    Thanks a lot!

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello nicolasmierbach

    Thank you for your reply.

    The question you are asking is related to code and is out of our support policy scope.
    I recommend consulting a professional Woo developer for better insights on how code works and the backend. A good place to find such a developer is Codeable.io.

    I will be happy to assist if you have any questions regarding the plugin setup and configurations. ??

    Best regards.

    Thread Starter nicolasmierbach

    (@nicolasmierbach)

    I allready got 2 developers working on this, but they dont know either. Do I really have to pay another person to have a question answerd about the name of a key to set? This seems a little excessive…

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @nicolasmierbach,

    Thanks again for reaching out. I understand this might be frustrating, however, as my colleague earlier said, this seems to be extensive and out of our support scope.

    With that said, I would like to recommend the WooCommerce community as it is filled with talented open-source developers, and many of them are active on the channels listed below. You can ask the question there and they would be happy to help:

    Hope this helps!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How are the Webhooks handeled?’ is closed to new replies.