#rodrax_identify-mit-paymentintents
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291796892979691591
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Can you explain what kind of integration you are building?
Typically, Payment Intents that are created without the Customer being present are created with the off_session parameter set to true
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-off_session
Hey snufkin, I work on the Integrations team at ProfitWell by Paddle and we're currently implementing some Charge analytics for connected companies who use Stripe as their subscription management systems. We basically just need to know whether a Charge (we can also look at the related PaymentIntent) was initiated by the customer or by the merchant
right, I read this and was happy to know there's something there, but then I read the "PaymentIntent object" API docs and there's no reference to that field, nor could I find an occurrence of it in some example events. Is this supposed to be there when looking at a payment intent event?
You would need to review the API request that creates the Payment Intent
oh I see
But it's easier to discuss this with an example. Do you have the ID of a merchant initiated Payment Intent so we can get on the same page?
unfortunately we don't have access to the API requests that create payment intents, we only have access to payment_intent.* events
I also couldn't tell you which payment intent was merchant-initiated, I mean I could go and look for some renewals and assume the payment intent was merchant-initiated
Can you share any payment intent ID for an intent you can reivew along with me?
yes sure, give me a moment
hold on, I'm having some technical difficulties
here: pi_3PpfkfAy7qpXUuYv14HikRit
Thanks, taking a look
Hmmm...yeah this payment intent was created due to a Subscription being created that specified the customer and payment method, so it was merchant initiated. I'm not sure how you'd get there from the Intent object though...
In this case it is related to an Invoice object in_1PpfkeAy7qpXUuYvgXZZYZm3
I mean if the setup_future_usage field says off_session, it probably means this current intent was on_session because the customer provided their payment details
does that sound correct?
Nope
well we tried
setup_future_usage is most often used for on-session payments
Because it sets up the payment method the customer uses for future off-session payments
It actually doesn't make a lot of sense in MIT
right, I think we're saying the same thing, unless I misunderstood that last thing you said
so setup_future_usage: off_session should only happen when the customer is initiating the transaction?
Not neceessarily
Some devs just leave it in there because it doesn't block anything and, if the payment intent is confirmed client-side, it will save the payment method
Essentially, you cannot use that value as an indicator of anything other than the fact that the Payment Intent was creatd with that value
It doesn't tell you how it was confirmed or anything else.
Yes. It is difficult to try to retrieve Payment Intents you did not create and determine how they were created
gotcha
well, you can probably close this then
you were super helpful โค๏ธ
we'll just have to run without differentiating CIT/MIT ๐คทโโ๏ธ
If you were the one creating the Payment Intents and wanted some sort of after-action reporting feature, you could add a tag in the metadata property.
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-metadata
I know that doesn't help you now but perhaps in the future you could recommend it to your clients?
yeah that could work, though this is mostly an internal tool/report we're trying to develop so it probably doesn't make sense to ask our clients to go out of their way
not to worry though, since that also means it's not something that affects our clients but just ourselves
Gotcha, that makes sense.