#muhammad-hamza-siddiqui_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1412738328037687339
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
hey
can you share the failed request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
req_luWBBdzXvlBbvu
The request was initiated on acct_1Qr0D6G6IlE01Uhe. pm_xxx existts on a different account: acct_1PYp2xFcGIr9wzDm
That explains the error
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so how to resolve this?
Well, what exactly are you trying to do?
i am trying to save payment method info from stripe elements and then using stripe payment intent api
from backend
but how exactly is it on different account
aren't payment method created every time we enter details of our carD
card?
You created pm_1S3DIxFcGIr9wzDmUrxHT2D6 here: https://dashboard.stripe.com/test/logs/req_zPX1LgQhbInuRD
In Stripe.js, using the publishable key from acct_1PYp2xFcGIr9wzDm
Your other request is using the secret key from the other account. So likelihood is they're just mismatched
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I don't know what that means
i am checking the issue of keys give me 5 minutes
issue is that
i have changed the publishable key
but still its throwing error
You need to send me the request that is throwing an error
req_ypX9X8w2YkRosq
pm_1S3DwRFcGIr9wzDmtM8Twwjc was still created on acct_1PYp2xFcGIr9wzDm
let me check it i have checked multiple times
Overall, I don't understand why you create the PM token and then the Setup Intent? You should instead create the Setup Intent, init the Elements instance with it's client_secret and then confirm it with the payment info from the Element
is there a proper flow for it?
hi! I'm taking over this thread.
is your goal to save a payment method to reuse it later? if so, this is the recommended flow: https://docs.stripe.com/payments/save-and-reuse