#Logan - Checkout

1 messages ยท Page 1 of 1 (latest)

sinful shale
#

Hello! You can't pre-select a specific method of payment for Checkout to use, no.

regal dove
#

Is the best option for this use-case to just do everything custom with payment intents etc?

sinful shale
regal dove
#

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!

sinful shale
#

It doesn't sound like exactly what you want, but may be of interest?

regal dove
#

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

sinful shale
#

Gotcha, yeah, you would need to build something custom in a case like that.

regal dove
#

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

sinful shale
#

For that to work the Payment Method in question would have to have been collected in a Checkout Session.

regal dove
#

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?

sinful shale
#

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.

regal dove
#

Appreciate it!

regal dove
#

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)?

sinful shale
#

That might work, yeah.

#

Worth a try in test mode!