Skip to content

Commit

Permalink
Allow to configure trial days for billing subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdierich committed Apr 5, 2024
1 parent 877f4fb commit 4d07e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/shopify-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
'amount' => 5.0,
'currencyCode' => 'USD', // Currently only supports USD
'interval' => EnsureBilling::INTERVAL_ONE_TIME,
'trialDays' => null,
],
];
1 change: 1 addition & 0 deletions src/Lib/EnsureBilling.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ private static function requestRecurringPayment(Session $session, array $config,
],
'returnUrl' => $returnUrl,
'test' => ! self::isProd(),
'trialDays' => $config['trialDays'],
],
]
);
Expand Down

0 comments on commit 4d07e87

Please sign in to comment.