#Vakarm

1 messages ยท Page 1 of 1 (latest)

radiant viperBOT
shadow trellis
#

Hey there

faint elm
#

Hi ๐Ÿ™‚

shadow trellis
#

So you won't receive this info in the callback, you would fetch your server at this point and retrieve the PaymentMethod then return the data you want to your frontend to display it.

faint elm
#

Ok but the payment is completed client side.
I understand i could retreive the PaymentMethod through php using some kind of payment reference?

shadow trellis
faint elm
#

I already have the server to create the intent first.

Thanks, I'll check it. I guess there is a kind of conf number that I receive from apple pay to get the paymentMethod back from server?

Or do I use the client_secret that I've got when creating the intent?

#

like in this php example (the link you just gave me)
$stripe->paymentMethods->retrieve(
'pm_1MWFdw2eZvKYlo2CvWcM1Btd',
[]
);

How can I get the key 'pm_1MWFdw2eZvKYlo2CvWcM1Btd' client side?

shadow trellis
#

Yeah that ID is the StripeAPI.PaymentMethod

faint elm
#

Ok thanks, I'll try to know where I can get this number then.

#

have a nice day

shadow trellis
#

So you will see that property when you retrieve the PaymentMethod server-side

faint elm
#

thanks for your help, I found the pm__ I should be fine ๐Ÿ™‚

shadow trellis
#

Nice!