Browse Source

Ticket #1182 - Enable PayPal payments.

AntonLV 8 years ago
parent
commit
cda2487e4c
1 changed files with 8 additions and 7 deletions
  1. 8 7
      modules/boonex/payment/classes/BxPaymentProviderChargebee.php

+ 8 - 7
modules/boonex/payment/classes/BxPaymentProviderChargebee.php

@@ -107,13 +107,14 @@ class BxPaymentProviderChargebee extends BxBaseModPaymentProvider implements iBx
 
 		try {
 			$aPage = array(
-				'subscription' => array(
-					'planId' => $aItem['name']
-				), 
-				'customer' => array(
-					'email' => $aClient['email'],
-					'firstName' => $aClient['name']
-				), 
+                            'embed' => false, //--- Note. 'embed' should be disabled to allow payments via PayPal
+                            'subscription' => array(
+                                    'planId' => $aItem['name']
+                            ), 
+                            'customer' => array(
+                                    'email' => $aClient['email'],
+                                    'firstName' => $aClient['name']
+                            ), 
 			);
 
 			if(!empty($aVendor) && is_array($aVendor) && !empty($aVendor))