#Logan - Checkout
1 messages ยท Page 1 of 1 (latest)
Is the best option for this use-case to just do everything custom with payment intents etc?
If you want that level of control, yeah, building a custom payment page with Elements is probably what you want to do: https://stripe.com/docs/payments/elements
Ok ๐ this would be a great feature for Stripe I think, I will waste so much time implementing this when the only thing I need from Checkout is to be able to send in the payment method that I already have ๐ข
Thank you!
We do have Link with Stripe support in Checkout: https://stripe.com/docs/payments/checkout/customization#link-with-stripe
It doesn't sound like exactly what you want, but may be of interest?
Thanks, I don't think it will work, because we have payment methods that are used by multiple people at a company
So we can't really tie a method to one phone number for example, it could be several people needing to use it
Gotcha, yeah, you would need to build something custom in a case like that.
I was also curious, the docs say that giving a customer ID should prefill the payment method w/ their last used payment method (in payment mode). This wasn't working for me.
I was hoping I could update the default payment method on the customer before redirecting and get it to work... but even with just a normal session redirect given a customer ID, only the email was prefilled
For that to work the Payment Method in question would have to have been collected in a Checkout Session.
I see
Last thing, I wanted to double check, in my case where I need a custom form using Elements, products/prices are useless to me right? Those are only used as far as I can tell for Checkout and invoicing
There is nothing I can leverage there as far as displaying the items in a cart and calculating the total etc, that all has to be on my end?
Correct. If you use Payment Intents directly you don't use Products and Prices. Payment Intents are a lower level object/API that lets you tell Stripe "charge this much money" without details beyond that.
You can specify details in the metadata on the Payment Intent, but Stripe ignores that information.
Appreciate it!
Hey Rubeus, I was just thinking... how stupid would it be to instead tie each payment method to a customer (setup thru Checkout setup intent stuff). When they choose a payment method on our side, that's the customer we send to Checkout. That way each customer object only has 1 payment method, and it will be pre-selected as it was originally added via Checkout setup)?