Skip to content

Commit

Permalink
Correct import statement for Laravel Cashier Paddle (#9806)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodjme authored Aug 5, 2024
1 parent 19515e2 commit 696cad1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cashier-paddle.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ In this example, the `CompleteOrder` listener might look like the following:
namespace App\Listeners;

use App\Models\Order;
use Laravel\Cashier\Cashier;
use Laravel\Cashier\Events\TransactionCompleted;
use Laravel\Paddle\Cashier;
use Laravel\Paddle\Events\TransactionCompleted;

class CompleteOrder
{
Expand Down Expand Up @@ -669,7 +669,7 @@ These defaults will be used for every action in Cashier that generates a [checko

You can retrieve a customer by their Paddle Customer ID using the `Cashier::findBillable` method. This method will return an instance of the billable model:

use Laravel\Cashier\Cashier;
use Laravel\Paddle\Cashier;

$user = Cashier::findBillable($customerId);

Expand Down Expand Up @@ -1372,7 +1372,7 @@ When listing the transactions for a customer, you may use the transaction instan
The `download-invoice` route may look like the following:

use Illuminate\Http\Request;
use Laravel\Cashier\Transaction;
use Laravel\Paddle\Transaction;

Route::get('/download-invoice/{transaction}', function (Request $request, Transaction $transaction) {
return $transaction->redirectToInvoicePdf();
Expand Down

0 comments on commit 696cad1

Please sign in to comment.