AntonLV 8 éve
szülő
commit
7f33bbf8d7

+ 7 - 2
modules/boonex/payment/classes/BxPaymentProviderStripe.php

@@ -617,10 +617,15 @@ class BxPaymentProviderStripe extends BxBaseModPaymentProvider implements iBxBas
 		return $oSubscription;
 	}
 
-    protected function _listPlans()
+    protected function _listPlans($iLimit = 100)
 	{
+	    if($iLimit <= 0)
+	        $iLimit = 1;
+        if($iLimit > 100)
+            $iLimit = 100;
+
 		try {
-			$oPlans = \Stripe\Plan::all();
+			$oPlans = \Stripe\Plan::all(array('limit' => $iLimit));
 		}
 		catch (Exception $oException) {
 			return $this->_processException('List Plans Error: ', $oException);