Browse: Home / Classes /

CouponService

CouponService

Description #


Source #

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



Methods #

  • all — Returns a list of your coupons.
  • create — You can create coupons easily via the coupon management page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.
  • delete — You can delete coupons via the coupon management page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon. You can also delete coupons via the API.
  • retrieve — Retrieves the coupon with the given ID.
  • update — Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.