use_stripe_sdk. when creating a paymenintent
See original GitHub issuehello.
having a connect platform with node js backend and iOS in front.
actually I’m asking customer account and cards object in my db. I’m migrating to new payment intents. So the iOS app call the function that create the payment intents as destination charge and putting on the fee and passing the confirm = true as parameter.
return await stripe.paymentIntents.create({
payment_method_types: ['card'],
amount: 1000,
currency: 'eur',
application_fee_amount: 10,
customer: customer,
payment_method: card,
confirmation_method: 'automatic',
confirm:true,
transfer_data: {
destination: 'acct_11111111111111111111',
}
})
I then pass back the payment intent to the app who gonna open the page to confirm the payment.
PROBLEM
the payment intent always report next action as "use_stripe_sdk:
"use_stripe_sdk" = {
"stripe_js" = "https://hooks.stripe.com/3d_secure_2_eap/begin_test/src_1Ega3MJBBAFk3hwIOEIala6t/src_client_secret_FAvvQ1UDEOtEDucophApwOG6";
type = "three_d_secure_redirect";
this way, when creating the redirect context I’ always getting NIL.
it then a way to force with url instead of “use stripe SDK” so I can finish the authentication on the app?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to use Payment Intent and Setup Intents with Stripe in iOS
When using manual confirmation, create the PaymentIntent after collecting payment information from the customer using Elements or our iOS ...
Read more >Create a PaymentIntent – curl - Stripe API reference
Creates a PaymentIntent object. After the PaymentIntent is created, attach a payment method and confirm to continue the payment. You can read more...
Read more >How to get PaymentIntent next_action.type = redirect_to_url ...
After the subscription is created on Stripe side, I have got the answer like in documentation above: { "id": "sub_XXXXXXXXXXXXXXXXXXX", "object" ...
Read more >How to use Payment Intent and Setup Intents with Stripe in iOS
When using manual confirmation, create the PaymentIntent after collecting payment information from the customer using Elements or our iOS ...
Read more >STPSetupIntentConfirmParams Class Reference
Provide a supported STPPaymentMethodParams object, and Stripe will create a PaymentMethod during PaymentIntent confirmation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello Oliver , yes solved that , think we can close 😃
Thanks !
Hi @ir-fuel , @giorgio80
Since you’re planning on confirming the PaymentIntent client-side and passing
confirm: true
on PaymentIntent creation, you would also need to specify thereturn_url
[0] to the PaymentIntent at creation/confirmation time.Since you are confirming on the client-side, you should not pass
confirm: true
on the server-side, and then confirm on the client-side (your iOS app) and pass thereturnURL
on STPPaymentIntentParams [1] instead.[0] https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-return_url [1] https://stripe.com/docs/payments/payment-intents/ios#handle-card-payment