tapan288/dodo-payments

Laravel Package for Dodo Payments

Maintainers

Package info

github.com/tapan288/dodo-payments

pkg:composer/tapan288/dodo-payments

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

0.0.4 2026-03-26 09:03 UTC

This package is auto-updated.

Last update: 2026-03-26 09:09:29 UTC


README

  1. add the Billable trait to your billable model definition.
use Laravel\Cashier\Billable;
 
class User extends Authenticatable
{
    use Billable;
}
  1. API Keys
DODO_PAYMENT=YOUR_API_KEY
DODO_SANDBOX=true
DODO_WEBHOOK_SECRET=YOUR_WEBHOOK_KEY
  1. You can create check using below code
 $user->newSubscription('default', 'prod_id')
            ->setBilling($billing)
            ->setReturnUrl(route('user.dashboard'))
            ->create();
  1. Exclude dodo/* from CSRF protection bootstrap/app.php file for Laravel 11
->withMiddleware(function (Middleware $middleware) {
    $middleware->validateCsrfTokens(except: [
        'dodo/*',
    ]);
})