Skip to content

Commit

Permalink
Fixing discount id bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MalcolmKnott committed Jun 23, 2021
1 parent 2e31cfb commit afae733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ protected function swapAcrossFrequencies($plan): self
if ($discount->amount > 0 && $discount->numberOfBillingCycles > 0) {
$options = ['discounts' => ['add' => [
[
'inheritedFromId' => 'plan-credit',
'inheritedFromId' => config('services.braintree.plan_credit_discount_id'),
'amount' => (float) $discount->amount,
'numberOfBillingCycles' => $discount->numberOfBillingCycles,
],
Expand Down

0 comments on commit afae733

Please sign in to comment.