Skip to content

Commit 6b78d37

Browse files
Make argument to Checkout::guest() an array (#10111)
Checkout::guest() expects an array, not a string: https://github.com/laravel/cashier-paddle/blob/5019728a54604c9fede22c7162d33f8cf7a820d9/src/Checkout.php#L33
1 parent 74c3d3a commit 6b78d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cashier-paddle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ Sometimes, you may need to create a checkout session for users that do not need
558558
use Laravel\Paddle\Checkout;
559559

560560
Route::get('/buy', function (Request $request) {
561-
$checkout = Checkout::guest('pri_34567')
561+
$checkout = Checkout::guest(['pri_34567'])
562562
->returnTo(route('home'));
563563

564564
return view('billing', ['checkout' => $checkout]);

0 commit comments

Comments
 (0)