#rodrax_identify-mit-paymentintents

1 messages ยท Page 1 of 1 (latest)

cerulean cypressBOT
#

๐Ÿ‘‹ 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.

scarlet radish
#

Hi ๐Ÿ‘‹

Can you explain what kind of integration you are building?

eternal pawn
#

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

eternal pawn
scarlet radish
#

You would need to review the API request that creates the Payment Intent

eternal pawn
#

oh I see

scarlet radish
#

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?

eternal pawn
#

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

scarlet radish
#

Can you share any payment intent ID for an intent you can reivew along with me?

eternal pawn
#

yes sure, give me a moment

#

hold on, I'm having some technical difficulties

#

here: pi_3PpfkfAy7qpXUuYv14HikRit

scarlet radish
#

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...

eternal pawn
#

yeah ๐Ÿ˜…

#

we do have an idea

scarlet radish
#

In this case it is related to an Invoice object in_1PpfkeAy7qpXUuYvgXZZYZm3

eternal pawn
#

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?

scarlet radish
#

Nope

eternal pawn
#

well we tried

scarlet radish
#

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

eternal pawn
#

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?

scarlet radish
#

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.

eternal pawn
#

makes sense

#

so we're in a bit of a pickle then huh?

scarlet radish
#

Yes. It is difficult to try to retrieve Payment Intents you did not create and determine how they were created

eternal pawn
#

gotcha

#

well, you can probably close this then

#

you were super helpful โค๏ธ

#

we'll just have to run without differentiating CIT/MIT ๐Ÿคทโ€โ™‚๏ธ

scarlet radish
eternal pawn
#

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

scarlet radish
#

Gotcha, that makes sense.