Add allow_promotion_codes option to subscribeStripe method

This commit is contained in:
Andras Bacsai 2024-04-13 14:57:11 +02:00
parent 933e395945
commit a18b4ffd0f

View File

@ -54,6 +54,7 @@ public function subscribeStripe($type)
return;
}
$payload = [
'allow_promotion_codes' => true,
'billing_address_collection' => 'required',
'client_reference_id' => auth()->user()->id . ':' . currentTeam()->id,
'line_items' => [[