I am implementing Stripe connect to charge a customer and then transfer commission to another associated account but I am stuck at the first step.
I have successfully taken card details of the customer and using stripe.js, I have tokenized it and then exchanged that token for a customer id which I saved in my DB.
Now for charging I am using:
$charge = StripeCharge::create([
"amount" => 774,
"currency" => "usd",
"customer" => $customerId,
"transfer_group" => $uniqueTransferString
]);
Now that actually makes payment of $7.74 instead of $774.00 and I have no idea why. Of course I am using everything in test mode.
The card I used to create the customer at the first place was: 4242 4242 4242 4242
I have tried to give charge amount as: 1000, 774.00 etc but every time it only charges 1% of the given amount.
I have searched but couldn't find help anywhere as if why is this happening.
Please help. Any push in the right direction is appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…