#Codex

1 messages · Page 1 of 1 (latest)

warped brookBOT
fallen hound
#

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?

icy sorrel
#

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

fallen hound
icy sorrel
#

Ahh okay

#

Thanks for looking into it

fallen hound
#

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?

icy sorrel
#

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?

fallen hound
#

Correct, createToken won't work with that element as far as I am aware

icy sorrel
#

Alright, thank you!