PHP code example of amish / stripe-test-clock
1. Go to this page and download the library: Download amish/stripe-test-clock library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amish / stripe-test-clock example snippets
use Amish\StripeTestClock\Facades\StripeTestClock;
// using the StripeClient
$stripe->customers->create(StripeTestClock::stripeOptions([
'email' => '[email protected]',
//...
]));
// Or using cashier
$user->createAsStripeCustomer(StripeTestClock::options());
bash
php artisan migrate
bash
php artisan test-clock:create "Test 1 week trial"