#sergio-sh_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/1293909383918522368
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
Hi tarzan
why are you passing the "moto" param?
it was passed in stripe UI when I checked how it does call to backend in chrome console
this is only available on the dashboard, since "normally" your customer is passing you their card information over the phone
what is an alternative minimal payload to have succeeded payment using offline pre-authorized payment method through Golang SDK?
used applying my values:
params := &stripe.PaymentIntentParams{
Amount: stripe.Int64(1099), // Amount in cents (e.g., $50.00)
Currency: stripe.String(string(stripe.CurrencyUSD)),
Customer: stripe.String(customerID),
PaymentMethod: stripe.String(paymentMethodID),
ReturnURL: stripe.String("https://example.com/order/123/complete"),
OffSession: stripe.Bool(true),
Confirm: stripe.Bool(true),
}
received next error: authentication_required, "status":402,"message":"Your card was declined. This transaction requires authentication."req_o9r2jw4QWE5m9D, pi_3Q8LNTAJlbf9cOtY3s2yru1c, ch_3Q8LNTAJlbf9cOtY3b8JgaR9
please, help to understand why this error is returned:
test card was with 3d secure, but payment method was pre-authroised for offline usage before...
taking a look
you're using the https://docs.stripe.com/testing#three-ds-cards card 4000000000003220
so it's normal that the payment would fail
so every card with 3d secure can't be automatically charged?
since this is an off_session, you would need your customer to come back on session to authenticate the payment
so instead of confirming it on the backend, you would send your customer back to the frontend and have them confirm the Payment there
thank you,
where can I find details other possible limitations on charging cards in offline mode?
thank you