#bohdan_70704

1 messages · Page 1 of 1 (latest)

halcyon hatchBOT
graceful dune
#

$params = [
'customer' => $customer_id,
'items' => [
[
'price' => $price_id,
],
],
'payment_behavior' => 'default_incomplete',
'collection_method' => 'charge_automatically',
'payment_settings' => [ 'save_default_payment_method' => 'on_subscription' ],
'expand' => [ 'latest_invoice.payment_intent', 'latest_invoice.charge.payment_method_details.card' ],
'metadata' => [
'site_url' => get_site_url(),
],
];

    return Stripe_Client::get()->subscriptions->create(
        $params,
        [ 'stripe_account' => Stripe_Module::get_connected_stripe_account_id() ]
    );
next tiger
#

Hi there!

graceful dune
#

Hi!

next tiger
#

Can you share the Subscription ID (sub_xxx)?

graceful dune
#

The latest one is sub_1NzFtUC1LluJiuYaCHWR9Vdj
but the same is for all previous subscriptions

#

Account is connected, in test mode, but I guess that client_secret should be received anyway..

next tiger
#

Thanks! Give me a few minutes to look into this.

graceful dune
#

Thank you!

next tiger
#

And once the total for the customer goes about $0.50, they will be charged

graceful dune
#

Got it! Thank you!