#jhonsalazar1623

1 messages · Page 1 of 1 (latest)

stuck nimbusBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

zealous verge
#

Hello! Can you provide more details? What do you mean by "default"?

wet haven
#

Hello

#

yeah

#

For example, when paying for a subscription it is possible to set the default payment method for future subscriptions or purchases, right?

#

My idea is similar, set the default payment method or before creating the payment attempt, move to the customer's payment method.

zealous verge
#

Yes, you can set a default Payment Method for Invoices at the Customer or Subscription level.

wet haven
#

it's possible? With subscriptions I manage without problems but in payment mode, I don't know how to do that

zealous verge
#

Payment mode? Is this for Checkout?

wet haven
#

function App() {
const options = {
mode: 'payment',
amount: 1099,
currency: 'usd',
// Fully customizable with appearance API.
appearance: {/.../},
};

return (
<Elements stripe={stripePromise} options={options}>
<CheckoutForm />
</Elements>
);
};

#

Yes, I'm using stripe element with paymen intent

#

but mode: 'payment' no subscription

zealous verge
wet haven
#

What is the event that will help me update the customer's payment method?

#

payment_method.attached ?

stuck nimbusBOT
zealous verge
#

I don't know enough about your flow to say for sure. It could be the attached Event, yeah. Can you try that in test mode and let us know if you run into an issue?

wet haven
#

yes,

#

Thanks so much!

#

have a nice day!