#cnguyen85
1 messages · Page 1 of 1 (latest)
The difference that I see between the both is :
"payment_method_types": [
"card",
"paypal",
"sepa_debit"
],
and
"payment_method_types": [
"card"
],
Could you please share these events Id?
Events ids are => evt_1NSEKVHVq3ZW5oizoumPj8u0 and evt_1NSEKTHVq3ZW5oizaIN0xkPp
thanks for sharing, checking...
ok ty
These tow events were generated from two different requests:
req_s4jDuzBhwro8JS and req_GzBwktcXx0L8PA
The first request is from calling this API POST /v1/setup_intents/seti_1NSEKRHVq3ZW5oizvK1093C7/confirm and the second one is when calling this API POST /v1/subscriptions
Those are two different calls and not one call
Ah ookkk. So this 2 events generate a 'setup_intent.succeeded' ?
How can I make the difference between the both in my code ? I want only handle the /confirm one
And you mean that 'stripe.subscriptions.create' generate a setup_intent.succeeded too ?
Correct.
When you create a SetupIntent, you can add a custom metadata and check it when you receive the webhook event.
So that you can make the difference and track only the /confirm ones..