#evan-paypal-paymentmethod
1 messages · Page 1 of 1 (latest)
Instead I think I should expect the payer_email to be fake.example.com or something like that
this is an example PM id pm_1NpbyvD9sYh65PYtp3WB4ZKS
And where exactly are you looking / expecting to see these values?
Is there a docs reference you can share that points to these?
I am basically retireving the payment method in the API so I can get more info about the payment method, like the card brand, last4, and payer email if it was a paypal PM.
Oh i see the null fields in the paypal hash now yea
So they can not be retireved ?
Looking now about whats expected here
Hmm seems like we should get a random payer_id but blank email
I wonder if this is related to the payment method creation flow, trying on my own integration
Yeah I thing am getting them after I confirm the intent on the client
but they are not there before confirming the intent
ok, yea, i see the same PM you shared now looks like it has a payer_id after you confirmed the PI
Ok poked at this a bit more, and a piece i'd missed what when using createPaymentMethod to get the paypal Payment Method, the server-confirmed PI goes to requires_action status and you need to redirect to the URL (next_action.redirect_to_url.url) to authorize the payment, after that the test payer details are populated on the PM