POST Array
$POST = filter_var_array($_POST, FILTER_SANITIZE_STRING);
$first_name = $POST['first_name'];
$last_name = $POST['last_name'];
$email = $POST['email'];
$token = $POST['stripeToken'];
// Create Customer in stripe
$customer = \Stripe\Customer::create(array(
"email" => $email,
"source" => $token
));
// Charge Customer
$customer = \Stripe\Charge::create(array(
"amount" => 50000,
"currency" => "usd",
"description" => "Javascript course",
"customer" => $customer->id
));
but its not working, any mistake i have done ??
It looks like you posted long piece of code, consider editing it out and putting it on hastebin.com and pasting link to it instead. Alternatively, send your code in a file.
What do u mean by "not working", errors?
Обсуждают сегодня