Answers for "Create a charge"

0

Create a charge

$stripe = new \Stripe\StripeClient(
  'sk_test_51Ii3pgL2sxxCMmgwSpETIPllrbwqqHE6aI86Gg5Fm9FKvDDrjypwMsgPNGtKKv7PeJb9gsFpfcbhRc091tdQZb3100snPwkSPH'
);
$stripe->charges->create([
  'amount' => 2000,
  'currency' => 'usd',
  'source' => 'tok_mastercard',
  'description' => 'My First Test Charge (created for API docs)',
]);
Posted by: Guest on April-30-2021

Browse Popular Code Answers by Language