#RockstarsNFT - Billing Info
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Hmmm...that's an old integration. I will need to research this since we don't have this info in our docs any more
Can you tell me specifically which API or Stripe.js function calls you are trying to pass additional data in to?
react app
stripe Elements wrapper wraps payment elements and passes in a stripe context from a loadStripe call
render cc form with stripe Elements
if (!cardElement) {
return;
}
const { token, error } = await stripe.createToken(cardElement, { name: billing?.name });
pls lmk if i can clarify, as that was quite terse
Okay so this info will get assigned to the Card object the createToken method creates
got it. which seems to have billing on it https://stripe.com/docs/api/issuing/cards
so will the customer in stripe get updated with the address on that object?
Nope, just the Card. There isn't a pass-through of data in this flow AFAIK
so it will only update the card object
interesting. i guess that makes sense bc the customer is separate from a card on his account
is there a way to retrieve/update a customer from the frontend so that sensitive information doesn't pass through our servers? or is it only via https://stripe.com/docs/api/customers/update
Not from the front-end. I think your best bet would be to listen for webhook events, e.g. payment_method.updated and update the Customer in an API call upon receiving the details.