Use Webhooks to trigger the capture Stripe payment

  • Profile Image
    ChantalFournier
    Asked on November 28, 2019 at 01:29 PM

    We got a Stripe account and the integration went perfectly. Are there ways to use webhooks to trigger the capture of the amount when we are ready? (Instead of using the link "Charge Customer Now" in the email or in the list of submissions.)

    Thank you.

  • Profile Image
    Richie
    Answered on November 28, 2019 at 01:44 PM

    To clarify, do you want to use webhook to capture the payment in Stripe?

    Unfortunately, we cannot trigger a webhook inside the email.

    Guide:https://www.jotform.com/help/245-How-to-Setup-a-Webhook-with-JotForm


  • Profile Image
    ChantalFournier
    Answered on November 28, 2019 at 01:54 PM

    Well, since the webhook is a message sent from jotform out to our endpoint, it can't trigger the capture. However, can the webhook send out the link to capture the payment, or can it send out another ID that we can store in our db and use to trigger the payment when we are ready?

    The way we work with our other flows of orders (with Woocommerce) is that when we enter tracking number for the item in our db, it sends Woocommerce the trigger to capture the reserved charge. If the webhook sends us the link (like the one in the confirmation email) we can keep it in the db and activate the link when ready.

  • Profile Image
    Richie
    Answered on November 28, 2019 at 02:28 PM

    It is possible to get submission data through webhooks. This data would include the Stripe link.

    You may test it here:http://api.jotform.com/docs/#form-id-webhooks

    Screenshot:


    It also possible to use webhooks in Stripe.

    Kindly check this guide:https://stripe.com/docs/webhooks

    Hope this information helps.

  • Profile Image
    ChantalFournier
    Answered on November 28, 2019 at 02:31 PM

    It does! Thank you.