Skip to content

Commit

Permalink
Update Checkout.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Nov 20, 2023
1 parent 5a5ebec commit 63a7fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static function create($owner, array $sessionOptions = [], array $custome
$data['subscription_data']['metadata']['is_on_session_checkout'] = true;
}

// Remove success and cancel url if ui_mode is "embedded"...
// Remove success and cancel URLs if "ui_mode" is "embedded"...
if (isset($data['ui_mode']) && $data['ui_mode'] === 'embedded') {
$data['return_url'] = $sessionOptions['return_url'] ?? route('home');
} else {
Expand Down

0 comments on commit 63a7fdb

Please sign in to comment.