#o.m
1 messages · Page 1 of 1 (latest)
Yes it's possible.
How should I approach this?
You can set save_default_payment_method to on_subscription (https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Right now I used PaymentIntent
cardElement.value = elements.create("payment", {
iconStyle: "solid",
classes: {
base: "form-control form-control-lg form-control-alt",
},
invalid: {
iconColor: "#FFC7EE",
color: "#FFC7EE",
},
});
I see.. Should I set elements.create( "card" ) also instead of "payment" ?