Skip to content

Commit fd0b237

Browse files
authored
Enhance checkout sessions
1 parent 3567970 commit fd0b237

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/Livewire/MobilePricing.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ public function createCheckoutSession(string $plan, ?User $user = null)
5454
->checkout([
5555
'success_url' => $this->successUrl(),
5656
'cancel_url' => route('early-adopter'),
57+
'consent_collection' => [
58+
'terms_of_service' => 'required',
59+
],
60+
'customer_update' => [
61+
'name' => 'auto',
62+
'address' => 'auto',
63+
],
64+
'tax_id_collection' => [
65+
'enabled' => true,
66+
],
5767
]);
5868

5969
return redirect($checkout->url);

0 commit comments

Comments
 (0)