#felipezf.

1 messages · Page 1 of 1 (latest)

zinc juniperBOT
magic tangle
#

Hi
can you share some code snippets of what you want to access exactly ?

cunning otter
#

sure

#

I want to do something like that: stripe = new Stripe(getApplicationContext(), PaymentConfiguration.getInstance(getApplicationContext()).getPublishableKey());
stripe.createCardToken(binding.cardInputWidget.getCardParams(), null, null, new ApiResultCallback<Token>() {

#

I need to access the credit card params from the user input

lavish summit
#

the PaymentElement can't really create Tokens no.

what are you really trying to do, why do you want a Token?

cunning otter
#

I need to create the credit card token with stripe.createCardToken method. To use this method, I need the CreditCardParams from the input. I can get this information using the Stripe CardInputWidget, but the form is too ugly 🙂 The one line form is not meeting the requirements that we need. If there is a way to setup the CardInputWidget to use multiple lines will work for me too.

lavish summit
#

I need to create the credit card token with stripe.createCardToken method.
why?

Tokens are mostly deprecated. What would you be doing with the Token?