The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
\Stripe\Subscription::update($external_subscription_id, [
'proration_behavior' => 'none',
'items' => [
[
'price_data' => [
'product' => $product_id,
'unit_amount' => $newTerm->getFinalPrice(),
'recurring' => [
'interval' => 'day',
'interval_count' => $newTerm->duration
],
]
]
]
]);