#kyleruban-customer-return

1 messages · Page 1 of 1 (latest)

tranquil mountainBOT
vital citrus
#

Hey @untold hinge ! Have you considered using Checkout end to end instead of trying to grasp and build this yourself? It would make your life drastically easier based on past questions you had.

#

But no we don't have a "template" for this and PaymentElement can only be used to collect new payment method/card details. It can't be used to pre-fill existing card details

#

kyleruban-customer-return

untold hinge
#

idk what checkout end to end is

#

I want to make a payment with just a button on my UI. With this payment I will send in CustomerID and PaymentMethodID. I dont wnat the paymentelement to pop up on my screen I just want to send a customer id nd paymentmethodid and make the payment that way

vital citrus
#

Checkout is our hosted product that you can send customers to where they can pay, enter card details, etc.

untold hinge
#

This will not be the customer making this charge

#

It will be the store making the charge with the customers saved paymentmethodid if the store needs to add a charge to the order after the customer has gone in and made the order

vital citrus
#

this is the doc you want to look at. All of this happens server-side really

untold hinge
#

I have all of that done already

#

I am saying how can i make a payment without having the payment element appear

#

Do you get what i am saying?

vital citrus
#

I do, which is exactly what I sent you to

untold hinge
#

I have the customeriD in my database and I am retreiving the paymentmethodid with that customer id

vital citrus
#

That doc says which code to write to charge an existing Customer and PaymentMethod

untold hinge
#

Okay i see it

#

just cause im curious though

#

AutomaticPaymentMethods = new PaymentIntentAutomaticPaymentMethodsOptions
{
Enabled = true,
},

#

what does that code do?