#shazuddinkhan

1 messages · Page 1 of 1 (latest)

ember marshBOT
drifting lily
#
$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

ashen fox
#

Let me check

#

Let me recreate it

#

req_LsuHj7Mw2pYKXJ

drifting lily
#

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"
      ]
    },
ashen fox
#

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?

drifting lily
#

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

Build a custom payment form or use Stripe Checkout to accept payments with ACH Direct Debit.

ashen fox
#

Let me try with this

#

it is still not showing

#

req_LUgtvRonpnVS40

drifting lily
#

Ah. It appears your platform is controlling your account's Payment Methods. Are you certain ACH DD is enabled?