Skip to content

devinweb/laravel-youcan-pay-boilerplate

Repository files navigation

Laravel YouCanPay boilerplate

To Start testing the laravel-youncan-pay

1- Update the .env

# Database env keys
DB_CONNECTION=
DB_HOST=127.0.0.1
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=

# YouCanPay env keys
SANDBOX_MODE=
PRIVATE_KEY=
PUBLIC_KEY=
CURRENCY=MAD
SUCCCESS_REDIRECT_URI=
FAIL_REDIRECT_URI=

2- Migrate the database.

php artisan migrate

3- Create your first users.

User::factory()->count(10)->create();

4- You may need to configure the schulder if you need to clean the pending transactions automatically based on the tolerance defined in youcanpay config file.

User::factory()->count(10)->create();

5- Navigate to the route /.

If you want testing the standalone integration you can navigate to the route /standalone

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published