#ToninHu3-PaymentIntent
1 messages · Page 1 of 1 (latest)
Hi, can you elaborate more on "does not return the value" and "does not go the the next step"? Which guide are you following?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So you are manually request 3D Secure. That's an advance integration. And what error are you seeing for now?
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
what is the current step and what is the next step? The link above is just a parameter in API reference
the current step is Create a card token
Card token is an older API than PaymentIntent. Any specific reason you want to use it?
in order to confirm a card payment without using stripeElements i should first create a card token to send as the payment method
Hello @long harbor are you at the same merchant with @chilly kernel ?
yes
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
Okie, so after creating the Card Token, it doesn't returns any value? Can you take the request Id from your Dashboard?: https://dashboard.stripe.com/test/logs
Is this client code?
I guess it's js, right
the request doesn't even show up at the dashboard
yes, react js
yes
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
Complete reference documentation for the Stripe JavaScript SDK.
np
the stripe.createToken only accepts a cardElement
what if i'm not using stripe elements?
our system is external to stripe elements: https://www.seguro.eucoom.com/checkout/1
Eucoom intermediações de pagamentos
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
just for style preferences
How about the React stripe.js? You can customize the style: https://stripe.com/docs/stripe-js/react
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?
For token,no. For other client side method, you have something like Source: https://stripe.com/docs/js/tokens_sources/create_source_data
Complete reference documentation for the Stripe JavaScript SDK.
But that's older API and we don't recommend it