#ajitkumar_error
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/1468263743673729149
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ajitkumar_docs, 7 hours ago, 10 messages
- ajitkumar_error, 1 day ago, 12 messages
- ajitkumar_error, 3 days ago, 3 messages
Hello Jazz
Could you please check why this exception occur?
when we trying to reauth the AmazonPay order
we getting exception at line PaymentMethod paymentMethod = paymentMethodService.Attach("pm_1Swl5oG4DeLvSy0OYFYqoZWQ", paymentMethodAttachOptions, this.requestOptions);
Hello denton,
Are you there?
hi there, looking into this now
ok
this error occurred because the payment method was previously used in this Payment Intent: https://dashboard.stripe.com/acct_1GsoT8G4DeLvSy0O/test/payments/pi_3SwiqkG4DeLvSy0O16JN8DAZ
Stripe doesn't allow attaching a payment method to a customer if it's been previously used to complete a payment. If you want to re-use a payment method in the future, you should set the setup_future_usage parameter when you create the Payment Intent https://docs.stripe.com/api/payment_intents/create#create_payment_intent-setup_future_usage
this will automatically attach the payment method to the customer when the payment is confirmed
okay
checking one transaction
Stripe.StripeException: 'The provided key 'sk_test_51*********************************************************************************************VAd5' does not have access to account '' (or that account does not exist). Application access may have been revoked.'
now I can get above one
paymentIntent = paymentIntentService.Create(paymentIntentCreateOptions, this.requestOptions);
to this line
can you share the account ID you're trying to send a request to? it should look like acct_1234
acct_1GsoT8G4DeLvSy0O
thank you. I don't see any test mode API keys (like the one from the error, beginning with sk_test ) for that account. are you trying to send your request to a sandbox?
ah wait, never mind, I do see that key for that account. one moment
please don't share API keys in this public channel, even test ones
I can get paymentIntent details as well
I would recommend rotating that key just to be safe
setting manual capture is mainly used for placing holds https://docs.stripe.com/payments/place-a-hold-on-a-payment-method
ok. then is that related to this error
it shouldn't be. does that exception message specifically mention account acct_1GsoT8G4DeLvSy0O ?