Coupons

Create a coupon

The createCoupon() method takes a CreateCouponRequest object as its only parameter.

$request = $stripe->coupons->createCouponRequest("once")->setPercentOff(50);
$stripe->coupons->createCoupon($request);

Retrieve a coupon

$coupon = $stripe->coupons->getCoupon("coupon_id");

Delete a coupon

$stripe->coupons->deleteCoupon("coupon_id");

List coupons

$coupons = $stripe->coupons->listCoupons();