Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $customerId = "";
- $cardId = "";
- $stripeAccountId = "";
- $amount = 100;
- $token = \Stripe\Token::create(array(
- "customer" => $customerId,
- "card" => $cardId,
- ), array(
- "stripe_account" => $stripeAccountId
- )
- );
- $charge = \Stripe\Charge::create(array(
- "amount" => $amount,
- "currency" => "USD",
- "description" => "Payment Test",
- "source" => $token->id,
- ), array(
- "stripe_account" => $stripeAccountId,
- )
- );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement