/** * @param Customer $customer * @param int $amount * @param string $currency * @param string $description * * @return Charge */ public function createFromCustomer(Customer $customer, $amount = 0, $currency = CurrencyFactory::EURO_CURRENCY, $description = null) { $stripeCharge = StripeCharge::create(array('amount' => $amount, 'currency' => $currency, 'customer' => $customer->getId(), 'description' => $description)); $charge = $this->stripeToChargeTransformer->transform($stripeCharge); return $charge; }