Update
This commit is contained in:
@@ -13,7 +13,7 @@ public static function getPricingPageSubscriptions()
|
||||
|
||||
$subscriptions = self::filterShowInPricing($subscriptions);
|
||||
|
||||
$subscriptions = self::setSystemPlan($subscriptions, 'stripe.current_stripe_price_id.month');
|
||||
$subscriptions = self::setSystemPlan($subscriptions, 'stripe.current_stripe_price_id.month', 'stripe_monthly_price_id');
|
||||
|
||||
$subscriptions = self::filterUnsetSystem($subscriptions);
|
||||
|
||||
@@ -28,7 +28,7 @@ public static function getPricingPageOneTime()
|
||||
|
||||
$one_time = PurchaseHelper::filterShowInPricing($one_time);
|
||||
|
||||
$one_time = PurchaseHelper::setSystemPlan($one_time, 'stripe.current_stripe_price_id');
|
||||
$one_time = PurchaseHelper::setSystemPlan($one_time, 'stripe.current_stripe_price_id', 'stripe_price_id');
|
||||
|
||||
$one_time = PurchaseHelper::filterUnsetSystem($one_time);
|
||||
|
||||
@@ -136,11 +136,11 @@ public static function getOneTimePurchases(?bool $enabled, $system = false)
|
||||
return $tmp_otp;
|
||||
}
|
||||
|
||||
public static function setSystemPlan($arr, $property)
|
||||
public static function setSystemPlan($arr, $property, $key_name)
|
||||
{
|
||||
foreach ($arr as $key => $item) {
|
||||
|
||||
$arr[$key]['stripe_monthly_price_id'] = PurchaseHelper::getPlanSystemProperty($item, $property);
|
||||
$arr[$key][$key_name] = PurchaseHelper::getPlanSystemProperty($item, $property);
|
||||
|
||||
// $stripe_monthly_price_id = PurchaseHelper::getPlanSystemProperty($subscription, 'stripe.product_id.month');
|
||||
|
||||
@@ -173,7 +173,7 @@ public static function filterShowInPricing($arr)
|
||||
});
|
||||
}
|
||||
|
||||
private static function getStripeEnvironment()
|
||||
public static function getStripeEnvironment()
|
||||
{
|
||||
$env = App::environment();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user