#francisco-invoice-paymentMethods
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share an example Payment Intent ID?
Okay yes this Payment Intent has been created configured for a specific set of payment methods
payment_method_types: [
"ach_credit_transfer",
"card",
"cashapp",
"link",
"wechat_pay"
],
How are you creating the Payment Element? Are you using Stripe.js to create the elements object with or without a client_secret?
we create the invoice on our python backend. we fetch the payment intent and return the client secret.
on the client side we conditionally render waiting for the transaction data to resolve with a secret.
{transactionData?.clientSecret && (
<Elements
stripe={stripePromise}
options={{
mode: "payment",
currency: "usd",
amount: amount,
}}
>
<StripePaymentForm
scheduledProjectIdForHandoff={scheduledProjectIdForHandoff}
projectTitle={projectTitle}
artistName={artistName}
clientSecret={transactionData?.clientSecret}
then in our stripe payment form we use the hooks: useStripe and useElements
In the <Elements> provider, try passing the paymentMethodTypes that match the payment methods found in the Payment Intent.
ok will do and I'll report back. Although one of the reasons we migrated to the new component was that we liked the extensibility of the automatic payment methods.
The payment method types being set on the Invoice are configured on your account here: https://dashboard.stripe.com/settings/billing/invoice?tab=general
Specifically in the default payment terms section under Payment methods
yes, but on that screen in test mode we are not able to modify them only when live and the live mode does not have automatic payment methods as an option. Is this something that will be enabled down the line or tbd?
Sorry for the delay. This is being looked into but we don't expect any movement on it in the near term.
If you would like to be updated about any changes to these settings I recommend writing in to Support https://support.stripe.com/contact