#sergio-sh_code

1 messages ยท Page 1 of 1 (latest)

brisk needleBOT
#

๐Ÿ‘‹ 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.

calm breach
#

๐Ÿ‘‹ happy to help

drifting fern
#

Hi tarzan

calm breach
#

why are you passing the "moto" param?

drifting fern
#

it was passed in stripe UI when I checked how it does call to backend in chrome console

calm breach
#

this is only available on the dashboard, since "normally" your customer is passing you their card information over the phone

drifting fern
#

what is an alternative minimal payload to have succeeded payment using offline pre-authorized payment method through Golang SDK?

drifting fern
#

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

calm breach
#

taking a look

#

you're using the https://docs.stripe.com/testing#three-ds-cards card 4000000000003220

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

#

so it's normal that the payment would fail

drifting fern
#

so every card with 3d secure can't be automatically charged?

calm breach
#

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

drifting fern
#

thank you,
where can I find details other possible limitations on charging cards in offline mode?

calm breach
drifting fern
#

thank you