laravel cashier resume subscription requires creditCardToken
“You should use brand new token, since token cannot be used more than once. Thus storing token is redundant as long as it’s used.”
erorr “[2015-05-07 07:45:16] local.ERROR: exception ‘Stripe\Error\InvalidRequest’ with message ‘Invalid decimal: ; must contain at maximum two decimal places.’ in C:\websites\testing\laravel-cashier\vendor\stripe\stripe-php\lib\ApiRequestor.php:144”
This:
1 2 3 |
$user - > subscription() - > resume(); |
Needs to be this:
1 2 3 |
$user - > subscription('monthly') - > resume($creditCardToken); |
But the question we have is: “does resuming a subscription require a new stripeToken? And if so, how do we get this?”