#RockstarsNFT - Billing Info

1 messages ยท Page 1 of 1 (latest)

opaque spruce
#

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

upper widget
#

appreciate it!

#

don't have in docs
yep ๐Ÿ™‚
that's why i'm asking

opaque spruce
#

Can you tell me specifically which API or Stripe.js function calls you are trying to pass additional data in to?

upper widget
#

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

opaque spruce
#

Okay so this info will get assigned to the Card object the createToken method creates

upper widget
#

so will the customer in stripe get updated with the address on that object?

opaque spruce
#

Nope, just the Card. There isn't a pass-through of data in this flow AFAIK

upper widget
#

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

opaque spruce
#

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.

upper widget
#

roger

#

thank you snufkin!