#juneid_90104

1 messages · Page 1 of 1 (latest)

jade blazeBOT
severe shoal
#

What's the goal?

#

Displaying a customer's saved payment methods to them?

cold finch
#

yes and how can i save them and retrieve them when they are on checkout

#

for now, what I am doing is creating a setupintent and sending the clientsecret to frontend to attaching the payment methods.

#

but if the same customer comes to but some other product i want to autofill or show the already attached payment methods

severe shoal
cold finch
#

So how can i send them to frontend

#

fpr autofilling

severe shoal
#

You'd make a call to your backend from the frontend. Backend calls stripe api. Backend processes the data in a way that's friendly to your frontend. Frontend takes that data and you choose how you want to display it

#

Autofilling isn't possible in the payment element though

#

You would need to dropdown or other way for them to select the saved payment methods without autofilling

cold finch
#

and if they select any of them how will I attach that particular method to the purchase

severe shoal
cold finch
#

why would i need to create a payment intent

severe shoal
#

What were you planning to do

cold finch
#

i am creating subscriptions

severe shoal
#

That's how you charge someone

cold finch
#

public virtual Subscription Create(SubscriptionCreateOptions options, RequestOptions requestOptions = null)

severe shoal
#

Ok then create a subscription and pass the payment method

#

Same principle

cold finch
#

if i am asking a customer to check the box if they want to use this card for future use

#

what doe sit mean

#

and how will i make changes according to this

severe shoal
#

What box

cold finch
#

Lets say

#

i am using confirmcardsetup method and i want to implement a checkbox which will ask customer if they want to use this card in future

jade blazeBOT
cold finch
#

if they say yes they want to use it in future what changes will i have to make

severe shoal
#

A setupintent already sets up a card for future use

#

That's the whole point of a setupintent

cold finch
#

So as of my understanding when a customer goes to checkout I will get the list of payment methods and ask the customer to select one if they want and then I will pass that specific payment method during the subscription.