#jhonsalazar1623
1 messages · Page 1 of 1 (latest)
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.
- jhonsalazar1623, 3 hours ago, 29 messages
Hello! Can you provide more details? What do you mean by "default"?
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.
Yes, you can set a default Payment Method for Invoices at the Customer or Subscription level.
it's possible? With subscriptions I manage without problems but in payment mode, I don't know how to do that
Payment mode? Is this for Checkout?
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
I was reading this coumentation https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment
Gotcha. So you want to set the default for future Invoices on the Customer? If so, you need to update the Customer's invoice_settings.default_payment_method: https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
What is the event that will help me update the customer's payment method?
payment_method.attached ?
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?