#waternephew_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1238571314634297415
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, I highly recommend that you migrate away from our legacy products, https://docs.stripe.com/payments/payment-intents/migration for instance.
With the sources API, I think you should be able to set those sources as the default_source on the customer object.
Have you tried and still seeing issues? Or, are you asking how to set it as the default source?
Asking how to set it as the default source.
Not sure how to do that with digital wallets. So that the card they used via apple pay or google pay shows up here since it will be the source
Like with card, they enter card details, tokenize it, and then we add it as a source. But how do we do that with a card from a digital wallet?
After you have the source id, you can use the source id on default_source which we seem to only reference here: https://docs.stripe.com/api/customers/update.
How do we create a token and source from a digital wallet like Google Pay or Apple Pay? With credit cards, we enter the credit data into the stripe #card-element component, tokenize it, then use the token to create a source on the customer. How do we do this with Google Pay or Apple Pay when Google/Apple store the card information?
The messaging above made it sound like you already have the objects IDs. If you're using CardElement, ApplePay and GooglePay are not supported. You would need to migrate to the PaymentElement: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements.
Okay. So using PaymentElement, when ApplePay and GooglePay is used, I can fetch a token from it, correct?
Or is a token not needed to charge their card once it hits below a certain amount?
With the new PaymentIntent and PaymentMethod, when you collect ApplePay/ GooglePay payment methods, they will have their own unique PaymentMethod IDs. You will then use those to make a payment using the PaymentIntent.
How can I test apple pay and google pay without using real cards?