#JoaoVitor - save payment methods
1 messages · Page 1 of 1 (latest)
hey there can you say more about what you're trying to do and what is not working?
this
I'm creating a card-type payment and linking it to a customerId
ChargeCreate
using sdk in .NET
Charge is a legacy API we don't recommend anymore, you should look at using payment intents if developing something new
Here is our guide for saving a card for future payments on a customer during an initial payment: https://stripe.com/docs/payments/save-during-payment
I suggest reviewing that and giving it a try
do you have an example doing with payment intent for card? where do I send the card data to process?
That guide above shows setting up card detail collection via Elements, yes
I need something like the Create token
another question how can i get StripeAccount consuming stripe api
Can you explain a bit more about what you need for both of those?
Are you asking about a flow that is more analogous to the old token/charge flow?
The payment element doesnt currently support that, but you can use the card element and createPaymentMethod to build an integration approximating that
Note that this is not a recommended integration pattern, but it is possible:
https://stripe.com/docs/payments/accept-a-payment-synchronously?platform=web#create-a-paymentmethod
JoaoVitor - save payment methods
link a payment to a customer after the payment has already been made?
No, payment methods are one-time-use only if not attached to a customer
if you want to attach a PM to a customer for re-use, you must do so prior to using it for a payment
can I link a card to a customer?
This seems to be the same questions we started with. Are you trying payment methods as I suggested?