#johnm202363
1 messages · Page 1 of 1 (latest)
Our Card Element and Payment Element do not have fields for collecting the name but you can make your own field and provide it to the billing_details param in your confirm call
https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-with_element-payment_method-billing_details
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
Unfortunately don't know what the norm is. As far as I know the info isn't sent to the bank but it can be helpful to have. You can do whichever makes more sense for your integration
THis is how I am creating the card
Map<String, Object> cardparams = new HashMap<>();
cardparams.put("source", cardToken);
Card cardobj =
(Card) customer.getSources().create(cardparams);
what would I add to the cardprms to add the name on card ?
Map<String, Object> owner
this is java BTW
owner.put ("name",name)
Can you show me your code for creating the cardToken?
If it is from the client can you show me the client code?
I get card token from java script pluging
Which plugin is this? I am actually not finding docs on a cardInfo element
the token is created on the web page... sent to the server
Are you writing the Stripe.js code itself or is this plugin something that someone else wrote?
this.stripe = Stripe(pubkey);
this.card = this.stripe.elements().create('card');
creates element on the web page. Has card number, exp date, cvc code, and zip code
returns token
server side, I create source from token
Are you coding this page for the first time now? If so, our Tokens API is legacy, so it may make more sense to start with a more modern API
Can you send me your code for when the user submits their payment details?
That explains why I can't documentation on it.
There are still docs on it, but there are more recent APIs that are easier to use with more capabilities https://stripe.com/docs/js/tokens/create_token?type=cardElement#stripe_create_token-data-name
let me do that instead. It would be to complicated to upload the code plus I might be breaking some confidentially rules. It is not a huge issue yet, I can always go into the console and update it there.