#fbcosta
1 messages · Page 1 of 1 (latest)
Sure, that can work. You'd probably want to leverage an auth/capture flow which is separate to Apple Pay really (but works with it): https://stripe.com/docs/payments/place-a-hold-on-a-payment-method
i.e. you place a auth/hold for $X, you collect payment details for the auth/hold via Apple Pay. If the 'bid' is accepted the you capture the payment. Otherwise cancel/release it.
can we not use a PaymentIntent? We don't want to hold the funds on their card
the other issue is we want to edit the Apple Pay message from "Amount Pending" to something else e.g. "Card Authorization". Is that possible? One of your colleagues I spoke to a while back seemed to think so
Yes, the auth/capture flow still uses Payment Intents (look at that doc, you just pass the capture_method parameter)
It is not, no
So however we set it up, it will say "Amount Pending?". It's very off-putting for users..
Hmm, can you share a pi_xxx and how you create the Payment Request instance?
You can pass the label param to control what that says: https://stripe.com/docs/js/appendix/payment_item_object#payment_item_object-label
I think the issue is that we can't set up a paymentIntent for £0.00, charge later and edit the label right?
I don't have one handy because we are setting this up at the moment. We were previously using the Payment Element with apple pay enabled, but your colleague told us we needed to switch to the Payment Request Button if we wanted control over the text being shown
this is what we are looking to achieve, with the ability to charge the card later
You likely want to use a Setup Intent in that case then: https://stripe.com/docs/payments/save-and-reuse?platform=web
what is the difference between a paymentIntent and a setupIntent?
A good summary here: https://stripe.com/docs/payments/setup-intents
A Setup Intent facilitates creating/saving payment details for future payments, which you just described before (e.g. no immediate payment)
and it can be paired with the Payment Request Button?
yes. Or you can just use the PaymentElement since that also supports cards and other methods at the same time/same code
we get this error when trying to use setup Intent with the payment request button
yeah because you have to use confirmCardSetup instead
the docs on the payment request page in the docs are geared towards payments so they mention confirmCardPayment, you can simply adapt it to use the SetupIntent confirmation if you want
will this setup allow us to edit the text for the "Amount Pending" issue?
well you can use whatever set of cart items(https://stripe.com/docs/js/payment_request/create#payment_item_object) you want, if you don't make the final total be pending:true then it won't show Amount Pending. If you do, it will, and you can't change that text, it's an internal detail of Apple
you should make sure whatever you end up making the sheet show is accurate/not confusing so as to reduce the chances of disputes/chargebacks
this is really not ideal... and are we able to display the amount (e.g. £400) and add a label (e.g. "this amount will only be charged if the bid is accepted) and NOT charge the card?
no, you're limited by what these native wallet sheets support
which is what with apple? there's no label? https://stripe.com/docs/js/appendix/payment_item_object#payment_item_object-label
you can/should test it but I'm pretty sure if you pass a label on the total item(https://stripe.com/docs/js/payment_request/create#stripe_payment_request-options-total) and also pass pending:true, the label is ignored and it shows Amount Pending. But test it.
When i say label, I mean an additional piece of text
in addition to "Amount Pending"
yep, but as far as I know that can't be done