Charges

Create a charge

The createCharge() method takes a CreateChargeRequest object as its only parameter.

$request = $stripe->charges->createChargeRequest(350, "usd");
$stripe->charges->createCharge($request); 

Retrieve a charge

$charge = $stripe->charges->getCharge("charge_id");

Update a charge

$stripe->charges->updateCharge("charge_id", "A new description.");

Refund a charge

$stripe->charges->refundCharge("charge_id");

Capture a charge

$stripe->charges->captureCharge("charge_id");

List multiple charges

$charges = $stripe->carges->listCharges();