#shazuddinkhan
1 messages · Page 1 of 1 (latest)
$subscription = $stripe->subscriptions->create([
'customer' => $cust_id,
'items' => [
['price' => $priceid],
],
'payment_behavior' => 'default_incomplete',
'payment_settings' => [
'payment_method_types' => ['card','us_bank_account'],
],
'expand' => ['latest_invoice.payment_intent'],
], ['stripe_account' => $stripe_account]);
Quoting here for context
Do you have a request ID for the Subscription creation request I can examine?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Thanks! Taking a look
Okay well the Payment Intent on the Invoice only has card listed under payment_method_types. Here are some of the relevant data:
payment_method_options: {
card: {
installments: null,
mandate_options: null,
network: null,
request_three_d_secure: "automatic"
}
},
payment_method_types: [
"card"
],
...
payment_settings: {
default_mandate: null,
payment_method_options: null,
payment_method_types: [
"card",
"us_bank_account"
]
},
Should I update the payment intent for payment method types after creating the subscription object?
or is there any way to specify 'automatic_payment_methods' => ['enabled' => true] for payment intent while creating the subscription?
I think you need to specify the financial_connections parameters in the payment_method_options as we show for a Payment Intent here: https://stripe.com/docs/payments/ach-debit/accept-a-payment in the Subscription create API call
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-payment_method_options-us_bank_account-financial_connections-permissions
Ah. It appears your platform is controlling your account's Payment Methods. Are you certain ACH DD is enabled?