#supun-wallet
1 messages · Page 1 of 1 (latest)
as of now i am using below method to create token for other cards
let res = await this.stripe.createToken(this.card)
heya @tame basalt, you can use either Checkout or Payment Element which offers Apple Pay or Google Pay as a payment method option. After creating a SetupIntent and collecting the card details to complete the SetupIntent, the completed SetupIntent will return a PaymentMethod object.
you shouldn't use a Token object since Tokens are deprecated.
@tardy spire thanks for quick reply. but we have an existing integration with tokens
gimme a second, i'll get back to you soon
alright, so you'd have to use the Payment Request button : https://stripe.com/docs/stripe-js/elements/payment-request-button
In this section : https://stripe.com/docs/stripe-js/elements/payment-request-button?platform=html-js-testing-apple-pay#html-js-complete-payment
Instead of listening for a paymentmethod event, you would listen for a token event instead : https://stripe.com/docs/js/payment_request/events/on_token
Thanks