I am trying to get Stripe\'s Checkout Custom Button to charge a credit card but all it does is minimize after I enter the credit card details. I am using the code found in t
Finally got it to work. Had to change a bunch of it. Here is the code:
Payment page
charge.php
$token,
'amount' => $amount,
'currency' => 'usd',
'description' => $desc
));
} catch(Stripe_CardError $e) {
// The card has been declined
}
echo "Successfully charged $$realAmount!
";
?>
I wish Stripe's documentation was more straightforward but this code handles the charge and it logs it on your dashboard.