SHARE
TWEET
Untitled
a guest
Mar 31st, 2015
5
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- <?php
- require_once('php/config.php');
- $token = $_POST['stripeToken'];
- $customer = \Stripe\Customer::create(array(
- 'email' => 'customer@example.com',
- 'card' => $token
- ));
- $charge = \Stripe\Charge::create(array(
- 'customer' => $customer->id,
- 'amount' => 5000,
- 'currency' => 'usd'
- ));
- echo '<h1>Thank you, and congratulations!</h1>';
- ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
