#Ritesh Gupta
1 messages · Page 1 of 1 (latest)
Can you share your code for the checkout page?
I'm using the same code as in this video https://www.youtube.com/watch?v=e-whXipfRvg&t=188s
In this episode, you’ll learn how to accept payments with the Payment Element using React Stripe.js. We’ll also see how to leverage many types of payment methods with one single integration using automatic payment methods.
Presenter
Matthew Ling - Developer Advocate at Stripe - https://twitter.com/mattling_dev
Table of contents
00:00...
Can you either upload it as a file or share a github link?
Hm ok. And when do those errors appear in the console?
On page load?
Or is this after you attempt to submit payment details
when i click pay now button, i'm getting that error
It was not working thats why i have added the CSP, but it didn't do anything
I see ok. What version of react-stripe-js are you using?
Hey there, first of all can you confirm this is not blocking payments?
It looks like the URL is the redirect after payment intent success, so i think it's not
but want to make sure
do i have to check on dashboard?
Or you can share one of those payment intent IDs
but you can also check the network tab in the dev tools
you should see a successful request to /confirm the PI
I'm curious whether the CSP error and the "unexpected error occured" are separate issues
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
pi_3NBwl0SGCrfwtjy71sfXJuQx
pi_3NBvtXSGCrfwtjy71o20kur0
all are incomplete payment
This i haven't seen till now
Ok so I think the CSP error is a bit of a red herring here, the real issue is these failed requests realted to indian export payment rules you can see in the error here:
https://dashboard.stripe.com/test/logs/req_iEYXfYl6EHSMw6
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It looks like you need to set a description on your payment intent:
https://stripe.com/docs/india-accept-international-payments#international-payments-for-services
Even after adding the description getting the same error const paymentIntent = await stripeInstance.paymentIntents.create({ description: "Software development services", shipping: { name: "Jenny Rosen", address: { line1: "510 Townsend St", postal_code: "98140", city: "San Francisco", state: "CA", country: "US", }, }, amount: 2000, currency: "usd", automatic_payment_methods: { enabled: true }, });
Can you share the new payment intent id? or is it the same one?
pi_3NBwu6SGCrfwtjy708a2uDdk
"message": "As per Indian regulations, export transactions require a description. More info here: https://stripe.com/docs/india-exports",
You've not set a description on the payment intent yet
So the same error seems expected
i did
this one
You need to set that, and will also need to provide the required customer details in the docs
The payment intent you shared has no description. Can you share the request you made to update the payment intent to set it?
maybe its not passing to stripe gateway
How are you trying to set it?