Closed vickysw closed 7 years ago
$user = User::findOne(1);
$user->newSubscription('main', 'monthly')->create($creditCardToken);
Can anyone tell me how to get $creditCardToken ?
Hi, try this https://github.com/yii2mod/yii2-cashier/blob/master/tests/CashierTest.php#L13
$user = User::findOne(1);
$user->newSubscription('main', 'monthly')->create($creditCardToken);
Can anyone tell me how to get $creditCardToken ?