I am trying to implement what mentioned here but getting error:
Array ([type] => invalid_request_error [message] => No such customer: 92 [param] => customer)
I am using Laravel Cashier:
$user = User::find($current_user_id);
if ($user->charge(100, [
'customer' => 92,
'source' => $token,
'description' => "Testing Payment Deduction for Brief"
])
) {
print "Awesome";
} else {
print "it failed";
}
Using this code to create customer fails as it trie to create a record in users table which does not need as I already have a user created:
$customer = $user->create(array(
'email' => '[email protected]',
'card' => $token
));
How can I send my existing customer ID and email to Stripe?
idis actually creating a user inuserstable. I don't need this. - Volatil3