InvalidRequest in ApiRequestor.php line 144:
Invalid source object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs‘
looks like a problem with the stripeToken (source)
1 2 3 |
at Customer::create(array('source' => '', 'email' => '[email protected]', 'description' => 'Subscription associate-basic'), |
Solved by?
_token is laravel CSRF token not stripeToken.
Check your form id is correct in HTML and script.
Check your publish key is there.
Check JS errors which may be cleared by page navigation.
Check you don’t have mutiple functions of the same name. ie – 2 stripe forms both calling the same event handler.
when you fix it you should see the stripeToken in the POST request