#EagerSnail
1 messages · Page 1 of 1 (latest)
You can't save the Apple Pay token itself, but you can check to see if they used Apple Pay via this field on the Payment Method that gets created: https://stripe.com/docs/api/payment_methods/object#payment_method_object-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.
Right! is there a way to show an apple icon on the payment elements or change the look of that card in the element so that its shown that we got the card from their wallet.
so the user doesnt just see we saved their card and dont know how we got access to it.
The Payment Element will show an Apple Pay button by default, if it is enabled for the payment. Afterward, you would want to configure something that checks the card.wallet hash on the Payment Method object to let them know that you got it from Apple Pay. We don't have any systems in place that will do this part for you, unfortunately
sounds good. Is the payment elements object customizable to that point or would we need to build our own display of the different payment methods to achieve that goal?
No customization is needed to show Apple Pay, so you shouldn't need to do anything special to get it to show up where it's supposed
right but it also displays their card they used with apple pay when we save it for future use. so when they come back they see apple pay and a card. we want to show that that card came from their apple pay. or is there a way to surpress the display of that card and only show apple pay if their card has a wallet attached?
The Payment Element is showing their card when they come back? Can you share a screenshot of what you're seeing?
Ahhh okay. Is that iOS or Android?
so i can see apple pay and that card came from us saving it from apple pay with the setup_future_usage method
ios
and it adds another one everytime i use that method and then displays another one.
so id like to either surpress that card from being shown in this or display something that calls out that it came from apple.
if those things are possible that is.
Ahhhhhh, that makes sense. I didn't realize this was an iOS app at first. Okay, so the short answer is: no, these aren't customizable. Essentially, Apple has a very strict set of rules for displaying Apple Pay on payment forms (e.g. it needs to display on top of other payment types, it must have the logo, etc.).
This means customizing the payment sheet is limited (mostly) to aesthetics: https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet#ios-customization
Here's the list of things that can be customized: https://stripe.com/docs/elements/appearance-api?platform=ios
so theres no way to get it to look like this how its displayed in the stripe console.
Unfortunately not.
ok. and how it displays that card on side of apple pay. is there a way to customize the way that looks? because thats what got saved from their apple pay. it created a card PM. and you can use apple pay seperately or the card that it created.
No, those components are baked in that way due to requirements from Apple and Visa about how things have to be displayed.
gotcha. Thank you so much. youve been a tremendous help
Sure thing!
Hey one last thing do you know any other companies that use payment elements/wallets with subscriptions to charge a saved PM that we could check out as an example of how to possible implement what we are going for?
I'm not really familiar with offerings from other companies
At least, I'm not sure of any other companies that offer this level of granularity
thanks