#Barba
1 messages Β· Page 1 of 1 (latest)
I think you'll need to get the payment intent associated with the invoice: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent then retrieve it and look at it's payment method: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
π
Does the payment_intent come in the invoice.paid webhook? Thanks
Well let me check it
Thanks!!
Yeah it's on the payment intent object
That's what you're looking at right?
That api spec reflects what is seen via the api
Yep but I would like to see on the doc all the possible options to make sure what comes
"payment_method_types": [
"card"
],
"payment_method_types": [
"card"
// and what more options???
// google or google_pay
// apple or apple_pay
// ..
],
Well that depends on your account
And the location of the customer
There's many factors that determine what's available for that specific customer
Could I see an example of a customer that has paid with google pay button and Apple Pay button ?
You can test this yourself in test mode to see what happens
But it should just show card
Mmmm Iβm looking for a way to identify if the user has used the google play or Apple Pay button option π¦
But if for those cases will came card⦠not sure how to identify this using the webhooks
Gotcha. There should still be a way to tell them apart. One sec
π₯° thanks
So to find this info you'll need to go to the payment intent's latest charge object: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge and then on that charge object, you can find wallet details here to indicate if apple pay or google pay was used: https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-wallet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
π
I also recommend looking into expansion to reduce the number of api calls you have to make here: https://stripe.com/docs/expand
Thanks a π―