#afenster

1 messages · Page 1 of 1 (latest)

crimson horizonBOT
novel vortex
#

An example is pi_3MRlHlR9Aspy0pBQ14TaVmK8

mental echo
novel vortex
#

When I run my code, I am getting this:

#

I retrieve the PaymentIntent, but the PaymentMethod is null. The PaymentMethodId has a value, but PaymentMethod is null.

#

I'm trying to get pi.PaymentMethod.Card, but PaymentMethod is null.

mental echo
#

The payment has to be completed. You complete the payment, then create the customer, then attach the payment method to the customer.

novel vortex
#

So if I do the capture, then PaymentMethod will no longer be null?

mental echo
#

That is correct

novel vortex
#

Doesn't seem to be working.

#

That is pm_1MRlICR9Aspy0pBQGfFGzw97

mental echo
#

It's the payment method id

novel vortex
#

I see that has a value. It had a value before capture too. But I want to get at the paymentIntent.PaymentMethod.Card object. Is there some way to do that?

Maybe I take the payment method ID and retrieve the payment method, and then I can get it?

I need the last 4 digits of the card that was used.

#

In short, maybe this isn't about the PaymentIntent so much as a .Net question. I know there's a PaymentMethod out there. But when I retrieve the PaymentIntent object, all it has is the ID. It doesn't have the PaymentMethod object.

mental echo
novel vortex
#

OK. I'll give it a try. Thanks for your help! Your team have been very helpful to me.

#

That's all the questions I've got. Thank you.