From 46af54d2289aa087fb1d3c0b46274cce7b628794 Mon Sep 17 00:00:00 2001 From: Julien Arcin Date: Thu, 20 Oct 2016 19:17:07 +0000 Subject: [PATCH] Add coupon parameter to checkout URL --- src/Subscriber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Subscriber.php b/src/Subscriber.php index 420e07f..f4a878a 100644 --- a/src/Subscriber.php +++ b/src/Subscriber.php @@ -115,7 +115,8 @@ public function getCheckoutUrl($embed = false) return ChargeBee_HostedPage::checkoutNew([ 'subscription' => [ - 'planId' => $this->plan + 'planId' => $this->plan, + 'coupon' => $this->coupon ], 'addons' => [ $this->addOns