#ToninHu3-PaymentIntent

1 messages · Page 1 of 1 (latest)

young fiber
#

Hi, can you elaborate more on "does not return the value" and "does not go the the next step"? Which guide are you following?

chilly kernel
young fiber
#

So you are manually request 3D Secure. That's an advance integration. And what error are you seeing for now?

chilly kernel
#

it does not generate an error, after sending the data to generate a token in the range, it simply does not return any value and no error is generated in the log

#

consequently, not going to the next step of integration

young fiber
#

what is the current step and what is the next step? The link above is just a parameter in API reference

chilly kernel
#

the current step is Create a card token

young fiber
#

Card token is an older API than PaymentIntent. Any specific reason you want to use it?

long harbor
#

in order to confirm a card payment without using stripeElements i should first create a card token to send as the payment method

young fiber
#

Hello @long harbor are you at the same merchant with @chilly kernel ?

chilly kernel
#

yes

long harbor
#

this is what we have so far, but, i don't know why, as soon as it reaches the line 181 the execution is interrupted

#

without any kind of error or warning

young fiber
#

Is this client code?

#

I guess it's js, right

long harbor
long harbor
long harbor
young fiber
#

Okie. The cardToken should be a Promise which resolves with a result object. Can you inspect its result.token and result.error?

#

Oh wait

#

I got it now. That stripe.tokens.create is a server method. You only can call it if you are on Node JS server

#

if you are in the client, you would want createToken instead

long harbor
#

oh, i see

#

i'll try it, i'll let you know if i have any trouble

#

thanks!

young fiber
#

np

long harbor
#

the stripe.createToken only accepts a cardElement

#

what if i'm not using stripe elements?

chilly kernel
young fiber
#

Oh you don't use Elements? Is there any specific reason that you don't want to? It's our recommendation with PCI compliance ready

long harbor
#

just for style preferences

young fiber
long harbor
#

just to make things clear: there's no way to use the stripe.createToken method without using stripe elements?

#

or any other client side token creation method?

young fiber
#

But that's older API and we don't recommend it

long harbor
#

i see

#

ok, i guess that's it then

#

thank you very much!