Hi Stripe Team,
I'm testing creating customer with a certain balance and its working fine, but when i tested the "charge" function and used the customer id as reference, It has no error.
But as a I retrieve the customer, there are no amount that has been deducted.
NOTE: I'm just using test developer token.
Here are my codes:
For Creating a customer:
$customer = \Stripe\Customer::create(array(
"description" => "testing customer",
"source" => $data->source, // obtained with Stripe.js
"account_balance" => 100000
));
For charging:
$charge = \Stripe\Charge::create(array(
"amount" => 20000,
"currency" => $currency,
//"source" => $data->source,
"customer" => $customer->id,
"description" => "Charge for " . $email
));
For retrieving:
$customer = \Stripe\Customer::retrieve($customer->id);
Hope you can help me with this.
Thanks,
Ejay