#Codex
1 messages · Page 1 of 1 (latest)
Looking in to this. Can you tell me more about your end goal here? Is it saving a wallet credit card without taking a payment?
Our current flow creates a token from the inputted CardElement. Then sends the token to our Backend
But we want to integrate with Apple Pay. Can we just turn this Apple Pay element into a token that we send to the Backend
Gotcha. Still looking in to this, I do see that there is an event for when the token is made but am unclear how to get to it without trying to confirm a payment intent or setup intent https://stripe.com/docs/js/payment_request/events#payment_request_events
Oh it sounds like I am just rusty. I now see that the button itself will send that event once the user has put in their info. The confirm typically happens within that event handler.
Can you try listening to that event and see if you can work with that token in your current process?
Ah I see, okay I'll have to try it out when I can
But normally, stripe.createToken() is mostly just for cardElements, etc, and not really advertised/documented for PaymentRequestButton?
Correct, createToken won't work with that element as far as I am aware
Alright, thank you!