#johnm202363

1 messages · Page 1 of 1 (latest)

dense summitBOT
balmy hatch
#

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

rare hornet
#

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)

balmy hatch
#

Can you show me your code for creating the cardToken?

#

If it is from the client can you show me the client code?

rare hornet
#

I get card token from java script pluging

balmy hatch
#

Which plugin is this? I am actually not finding docs on a cardInfo element

rare hornet
#

the token is created on the web page... sent to the server

balmy hatch
#

Are you writing the Stripe.js code itself or is this plugin something that someone else wrote?

rare hornet
#

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

balmy hatch
#

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?

rare hornet
#

That explains why I can't documentation on it.

balmy hatch
rare hornet
#

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.