📜  创建费用 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:55.004000             🧑  作者: Mango

代码示例1
$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)',
]);