Controller/UserOrderController.php 1 location
|
@@ 155-158 (lines=4) @@
|
152 |
|
); |
153 |
|
|
154 |
|
$discount = array(); |
155 |
|
if ($durationObj->getDiscount()) { |
156 |
|
$discount['value'] = $durationObj->getDiscount()->getValue(); |
157 |
|
$discount['type'] = $durationObj->getDiscount()->getType(); |
158 |
|
} |
159 |
|
$subscriptionConfig = $subscriptionService->getOneSubscriptionSpecification($subscription); |
160 |
|
$subscriptionData = new \Newscoop\PaywallBundle\Subscription\SubscriptionData(array( |
161 |
|
'userId' => $order->getUser(), |
Controller/UsersSubscriptionsController.php 1 location
|
@@ 191-194 (lines=4) @@
|
188 |
|
); |
189 |
|
|
190 |
|
$discount = array(); |
191 |
|
if ($durationObj->getDiscount()) { |
192 |
|
$discount['value'] = $durationObj->getDiscount()->getValue(); |
193 |
|
$discount['type'] = $durationObj->getDiscount()->getType(); |
194 |
|
} |
195 |
|
|
196 |
|
$subscriptionData = new \Newscoop\PaywallBundle\Subscription\SubscriptionData(array( |
197 |
|
'userId' => $order->getUser(), |