mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
fix paypal discounting
This commit is contained in:
@@ -239,12 +239,12 @@ class PaypalPaymentService
|
||||
$post_data['billing_cycles'] = [
|
||||
[
|
||||
'frequency' => [
|
||||
'interval_unit' => $custom_intervals[$planPrice->custom_interval_type],
|
||||
'interval_count' => ($planPrice->payment != 'upfront' ? 1 : $planPrice->custom_interval)
|
||||
'interval_unit' => $planPrice->payment == 'monthly' ? 'MONTH' : 'YEAR',
|
||||
'interval_count' => 1
|
||||
],
|
||||
'tenure_type' => 'REGULAR',
|
||||
'sequence' => 1,
|
||||
'total_cycles' => ($planPrice->payment == 'upfront' ? 1 : $planPrice->custom_interval),
|
||||
'total_cycles' => ($planPrice->payment == 'upfront' ? 0 : $planPrice->custom_interval),
|
||||
'pricing_scheme' => [
|
||||
'fixed_price' => [
|
||||
'currency_code' => getCurrencyCode(),
|
||||
|
||||
Reference in New Issue
Block a user