Browse: Home / Classes /



Description #

Source #

File: includes/lib/stripe-php/lib/Service/ChargeService.php

Methods #

  • all — Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.
  • capture — Capture the payment of an existing, uncaptured, charge. This is the second half of the two-step payment flow, where first you created a charge with the capture option set to false.
  • create — To charge a credit card or other payment source, you create a Charge object. If your API key is in test mode, the supplied payment source (e.g., card) won’t actually be charged, although everything else will occur as if in live mode. (Stripe assumes that the charge would have completed successfully).
  • retrieve — Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.
  • update — Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.