The createCharge()
method takes a CreateChargeRequest
object as its only parameter.
$request = $stripe->charges->createChargeRequest(350, "usd");
$stripe->charges->createCharge($request);
$charge = $stripe->charges->getCharge("charge_id");
$stripe->charges->updateCharge("charge_id", "A new description.");
$stripe->charges->refundCharge("charge_id");
$stripe->charges->captureCharge("charge_id");
$charges = $stripe->carges->listCharges();