#darshan_code

1 messages ยท Page 1 of 1 (latest)

turbid spindleBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

vale atlas
#

We're currently splitting the total checkout amount into two parts and showing the full amount on the checkout page.
what does "splitting" means exactly?

#

and can you share your CheckoutComponent code?

twilit cedar
#

it's means like currencly for currency total amount is 1.50$ so what we are doing is on checkout page we are showing 1.50 but charging customer 0.75 inside stripe checkout and 0.75 will charge after then complete checkout proccess and second charge will be change from backend

#

So for card it's working very well but on apple pay and google pay it's just issue

#

see on this image on backgorund it's showing $ 1.75 but on apple pay popup it's showing 0.88 as payment intent from backend was created only for 0.88

vale atlas
#

but charging customer 0.75 inside stripe checkout and 0.75 will charge after then complete checkout proccess and second charge will be change from backend
I don't understand. can you explain this more clearly? something like:

  • first we create a PaymentIntent for 0.75, example: pi_xxx
  • once that payment is completed, we create a new PaymentIntent for xxx: pi_xxx
  • now our issue is that xxxx
twilit cedar
#

let me know if still you don't understood this

#

hello @vale atlas

#

are you got my point ?

vale atlas
#

sorry, looking into this now.

twilit cedar
#

okay

vale atlas
#

I still don't understand much, sorry. can you share the two PaymentIntent ID (pi_xxx)?

twilit cedar
#

sure

#

first payment intent id: pi_3QMqL2ARglNY93qr3g9L5XL3
amount: $0.65

second payment intent id: pi_3QMqM1ARglNY93qr2F9phKTX
amount: $0.60

account id: acct_1PidyMARglNY93qr
please check on test mode

#

on checkout we are showing $1.25 to customer

vale atlas
#

so the issue is the amount you are displaying to users which is not correct?

#

can you share the code you are using to display that amount?

#

and if I understand correctly, the user is entering their payment information once, but you create 2 different PaymentIntents? that doesn't seems like a great options:

  • users might have to go though two 3DS flow in a row
  • also when they check their bank statement they might be confused
    so I would recommend to create a single PaymentIntent with the full amount instead.
twilit cedar
#

I know that but due to some our requirement we need to convert the amout into two parts, so can you just let me know how could we show full amount on apple pay payment flow

vale atlas
#

how are you using Apple Pay? with the Payment Element?

twilit cedar
vale atlas
#

how are you initilaizing the Payment Element? with a PaymentIntent client secret, or with an amount?

twilit cedar
#

we are initializing payment element with client secret

vale atlas
#

then the amount you'll see is the amount of the PaymentIntent associated with that client secret

twilit cedar
#

does there any options from where I can customize the amount to show on checkout page ?

vale atlas
#

yes, if you use the deferred intent flow that I linked above

twilit cedar
#

okay, thansk for help

turbid spindleBOT
vale atlas
#

sure

twilit cedar
frosty schooner
#

the answer to that question is "yes"