#icurrytheteam

1 messages · Page 1 of 1 (latest)

light spindleBOT
prime pier
#

👋 happy to help

fervent crane
#

Ok great, thanks

prime pier
#

you can integrate with Customer Portal for low-code solution

fervent crane
#

I'd rather not use a customer portal. I'd prefer if users can manage their payment information on my site directly.

#

Can this customer portal have it's UI customized?

prime pier
#

then you would use the same code to Setup (with SetupIntent) a new Payment Method

fervent crane
#

So would I be updating the SetupIntent object associated with the Customer?

#

I'm asking this because I'm not entirely sure if I want to use PaymentMethods or SetupIntent to let Customers attach a payment method for future use?

#

At first, I wanted to use SetupIntent but now I seem to be having some doubts.

prime pier
fervent crane
#

I no longer am having doubts about that specifically.

#

But would creating the new SetupIntent automatically update the Customer's saved payment information?

prime pier
#

if you want you can detach the old one

#

once the new Payment Method is attached

fervent crane
#

Right, I'm asking this because say for example I have a Customer who no longer wants to pay with his current card as a payment method, so they enter a new card. Would I just detach the old one and attach the new one?

prime pier
#

yes that's correct

fervent crane
#

So I'm technically not "updating" a SetupIntent at any point. Just deleting one and creating a new one?

#

I'm just curious as my Customer can have Subscriptions, so I thought their Subscriptions would cancel should we delete the SetupIntent.

prime pier
#

you don't even need to delete

#

a SetupIntent is a "one-use token" to setup a Payment Method to be attached to a customer and used in the future

#

once that is done, it would have accomplished its purpose and it will no longer be useful other than for tracking purposes

fervent crane
#

Oh ok, I see

#

Upon reading the API, it makes sense why that is.

#

Thanks

prime pier
#

no worries

#

let me know if you need any more help