diff --git a/modules/boonex/payment/classes/BxPaymentProviderStripe.php b/modules/boonex/payment/classes/BxPaymentProviderStripe.php index aed1523b51..888e3c96b5 100644 --- a/modules/boonex/payment/classes/BxPaymentProviderStripe.php +++ b/modules/boonex/payment/classes/BxPaymentProviderStripe.php @@ -248,24 +248,6 @@ protected function _createCharge($sToken, $iPendingId, &$aClient, &$aCartInfo) ); } - protected function _retrieveCharge($sId) { - $oCharge = null; - bx_alert($this->_oModule->_oConfig->getName(), $this->_sName . '_retrieve_charge', 0, false, array( - 'charge_id' => &$sId, - 'charge_object' => &$oCharge - )); - - try { - if(empty($oCharge)) - $oCharge = \Stripe\Charge::retrieve($sId); - } - catch (Exception $oException) { - return $this->_processException('Retrieve Charge Error: ', $oException); - } - - return $oCharge; - } - protected function _createSubscription($sToken, $iPendingId, &$aClient, &$aCartInfo) { if(empty($this->_oCustomer)) diff --git a/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php b/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php index ff66c263a6..470d733fc4 100644 --- a/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php +++ b/modules/boonex/payment/classes/BxPaymentProviderStripeBasic.php @@ -368,6 +368,25 @@ protected function _retrieveCustomer($sType, $sId) return $oCustomer; } + protected function _retrieveCharge($sId) + { + $oCharge = null; + bx_alert($this->_oModule->_oConfig->getName(), $this->_sName . '_retrieve_charge', 0, false, array( + 'charge_id' => &$sId, + 'charge_object' => &$oCharge + )); + + try { + if(empty($oCharge)) + $oCharge = \Stripe\Charge::retrieve($sId); + } + catch (Exception $oException) { + return $this->_processException('Retrieve Charge Error: ', $oException); + } + + return $oCharge; + } + protected function _retrieveSubscription($sCustomerId, $sSubscriptionId) { try {