#darshan_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/1308401096452083784
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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?
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
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
please check this video for better understanding
let me know if still you don't understood this
hello @vale atlas
are you got my point ?
sorry, looking into this now.
okay
I still don't understand much, sorry. can you share the two PaymentIntent ID (pi_xxx)?
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
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.
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
how are you using Apple Pay? with the Payment Element?
yes, I am using that with payment element
how are you initilaizing the Payment Element? with a PaymentIntent client secret, or with an amount?
we are initializing payment element with client secret
then the amount you'll see is the amount of the PaymentIntent associated with that client secret
maybe you could try using the deferred intent flow? https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web
does there any options from where I can customize the amount to show on checkout page ?
yes, if you use the deferred intent flow that I linked above
okay, thansk for help
but does apple pay and google pay will show on this checkout or not ?
https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web
sure
@vale atlas @frosty schooner ?
the answer to that question is "yes"