#taoz_paymentsheet-card

1 messages ¡ Page 1 of 1 (latest)

vernal finchBOT
#

👋 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/1298787668443791411

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

worldly cargo
#

taoz_paymentsheet-card

#

@vital shore PaymentSheet is a UI element to collect payment method details such as card. The default validation is whether the card number passes the Luhn check, if the expiration date is in the future, etc.
Then once you confirm the PaymentIntent or SetupIntent with it it will check that the card details are valid and return a detail otherwise

#

it's no different from your legacy integration conceptually

vital shore
#

but the legacy methods such as confirmPayment will be deprecated soon, right?

worldly cargo
#

PaymentSheet is not being deprecated and it calles the Confirm PaymentIntent or Confirm SetupIntent API for you automatically under the hood. So it works the same

vital shore
#

As I know, some legacy methods such as confirmPayment in iOS SDK will be deprecated soon

#

this code snipet is from sample code in legacy payment element

worldly cargo
#

No you need to use PaymentSheet, that's the right way

vital shore
worldly cargo
#

sure thing