#ajitkumar_error

1 messages ¡ Page 1 of 1 (latest)

solid swallowBOT
#

👋 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.

lime timber
#

Hello Jazz

solid swallowBOT
lime timber
#

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?

sharp vector
#

hi there, looking into this now

lime timber
#

ok

sharp vector
#

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

lime timber
#

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

sharp vector
#

can you share the account ID you're trying to send a request to? it should look like acct_1234

lime timber
#

acct_1GsoT8G4DeLvSy0O

sharp vector
#

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

lime timber
#

should I set CaptureMethod = "manual"

#

we are using this

sharp vector
#

please don't share API keys in this public channel, even test ones

lime timber
#

I can get paymentIntent details as well

sharp vector
#

I would recommend rotating that key just to be safe

lime timber
#

ok

#

i deleted it

sharp vector
lime timber
#

ok. then is that related to this error

sharp vector
#

it shouldn't be. does that exception message specifically mention account acct_1GsoT8G4DeLvSy0O ?

lime timber
#

getting for this account

#

i using this

#

not sure about other