#Gerald-webhook
1 messages · Page 1 of 1 (latest)
hi bismarck, I have the following paymentIntent const paymentIntent = await stripe.paymentIntents.create( { amount: Math.round(amount * constants.DOLLARS_TO_CENTS), currency: "SGD", customer, payment_method: paymentMethod, off_session: true, confirm: true, application_fee_amount: Math.round(adminCommission * constants.DOLLARS_TO_CENTS) - stripeFixedFee * constants.DOLLARS_TO_CENTS, }, { stripeAccount: merchantInfo.stripeId, }, );
when succeeded, the webhook doesnt get called. Its a direct charge with cloned customer details
oh!
how do i do that
If creating through the Dashboard then you select the "Listen to Events on Connected accounts" option when you create the endpoint
Otherwise, if through the API, then https://stripe.com/docs/api/webhook_endpoints/create#create_webhook_endpoint-connect
give me a moment
Sure
solve it thanks!