%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/www/testbeta/stripe/
Upload File :
Create Path :
Current File : //home/eirtvhdf/www/testbeta/stripe/Checkout.php

<?php
/*foreach ($_POST as $key => $value) {
    echo "Field ".htmlspecialchars($key)." is ".htmlspecialchars($value)."<br>";
}*/
?>


<?php require_once('../root_stripe/stripe/init.php'); ?>

<?php


// Set your secret key: remember to change this to your live secret key in production
// See your keys here: https://dashboard.stripe.com/account/apikeys
\Stripe\Stripe::setApiKey("sk_test_yAeBLEexLzniHQPix52aXQ4H");
//\Stripe\Stripe::setApiKey("sk_live_YpU9lRbjxmCwUELJH6TJJgOZ");

// Token is created using Checkout or Elements!
// Get the payment token ID submitted by the form:
$token = $_POST['stripeToken'];
$amount = $_POST['stripeAmount'];
$desc = $_POST['stripeDesc'];

$charge = \Stripe\Charge::create([
    'amount' => $amount,
    'currency' => 'usd',
    'description' => $desc,
    'source' => $token,
    'receipt_email' => 'fahadansari91@gmail.com',
]);

//echo $charge;
header('Location: '.'/eirtechs/');
	?>


Zerion Mini Shell 1.0