UNA
BxDolPayments Class Reference
Inheritance diagram for BxDolPayments:
BxDolFactory iBxDolSingleton

Public Member Functions

 setActive ($sActive)
 getActive ()
 getActiveObject ()
 isActive ()
 isCreditsOnly ()
 getDetailsUrl ()
 getCurrencyInfo ($iVendorId=0)
 getCurrencyCode ($iVendorId=0)
 getCurrencySign ($iVendorId=0)
 convert ($fAmount, $sCurrencyFrom, $sCurrencyTo)
 isAcceptingPayments ($iVendorId, $sPaymentType='')
 isPaymentProvider ($iVendorId, $sVendorProvider, $sPaymentType='')
 getPaymentProvider ($iVendorId, $sVendorProvider, $sPaymentType='')
 isProviderOptions ($iVendorId, $sVendorProvider, $sPaymentType='')
 getProvider ($sProvider, $mixedVendorId=BX_PAYMENT_EMPTY_ID)
 getProviderOptions ($iVendorId, $sVendorProvider, $sPaymentType='')
 getModulesWithPayments ()
 getProductsNames ($iVendor=0, $iLimit=1000)
 getPayments ()
 updateDependentModules ($sModule='all', $bInstall=true)
 getProvidersCart ($iVendorId)
 getOption ($sOption)
 getOrdersUrl ()
 getOrdersCount ($sType)
 getOrdersInfo ($aConditions)
 getPendingOrdersUrl ()
 getPendingOrdersInfo ($aConditions)
 getSubscriptionOrdersInfo ($aConditions)
 getSubscriptionsInfo ($aConditions, $bCheckInProvider=false)
 getInvoicesUrl ()
 getInvoicesCount ($sType)
 getCartUrl ($iVendor=0)
 getCartItemsCount ()
 getCartItems ($iVendorId, $iModuleId)
 getCartItemDescriptor ($iVendorId, $iModuleId, $iItemId, $iItemCount=false)
 getCartJs ($sType='', $iVendorId=0)
 addToCart ($iVendorId, $mixedModuleId, $iItemId, $iItemCount, $aCustom=array())
 getAddToCartJs ($iVendorId, $mixedModuleId, $iItemId, $iItemCount, $bNeedRedirect=false, $aCustom=array())
 getAddToCartLink ($iVendorId, $mixedModuleId, $iItemId, $iItemCount, $bNeedRedirect=false, $aCustom=array())
 subscribeWithAddons ($iVendorId, $sVendorProvider, $mixedModuleId, $iItemId, $iItemCount=1, $sItemAddons='', $sRedirect='', $aCustom=array())
 getSubscriptionsUrl ()
 getSubscribeUrl ($iVendorId, $sVendorProvider, $mixedModuleId, $iItemId, $iItemCount=1)
 getSubscribeJs ($iVendorId, $sVendorProvider, $mixedModuleId, $iItemId, $iItemCount=1, $sRedirect='', $aCustom=array())
 getSubscribeJsWithAddons ($iVendorId, $sVendorProvider, $mixedModuleId, $iItemId, $iItemCount=1, $sItemAddons='', $sRedirect='', $aCustom=array())
 getSubscribeLink ($iVendorId, $sVendorProvider, $mixedModuleId, $iItemId, $iItemCount=1, $sRedirect='', $aCustom=array())
 sendSubscriptionExpirationLetters ($iPendingId, $sOrderId)
 authorizeCheckoutSingle ($iVendorId, $sProvider, $aItems=array())
 authorizeCheckoutRecurring ($iVendorId, $sProvider, $aItems=array())
 captureAuthorizedCheckoutSingle ($sOrder)
 captureAuthorizedCheckoutRecurring ($sOrder)
 initializeCheckout ($iVendorId, $sProvider, $aItems=array())
 cancelSubscription ($sOrderId)
 processOrder ($iSellerId, $iClientId, $iModuleId, $aItems, $sType, $sOrder)
 processOrderByPending ($iPendingId, $sOrder)
 refundOrder ($sOrder)
 generateLicense ()

Static Public Member Functions

static getInstance ()

Protected Attributes

 $_oDb
 $_aObjects
 $_sActive

Constructor & Destructor Documentation

◆ __construct()

BxDolPayments::__construct ( )
protected

Reimplemented from BxDolFactory.

Member Function Documentation

◆ addToCart()

BxDolPayments::addToCart ( $iVendorId,
$mixedModuleId,
$iItemId,
$iItemCount,
$aCustom = array() )

Adds an item to cart in background mode.

◆ getAddToCartJs()

BxDolPayments::getAddToCartJs ( $iVendorId,
$mixedModuleId,
$iItemId,
$iItemCount,
$bNeedRedirect = false,
$aCustom = array() )

Returns "Add To Cart" JavaScript code to use in onclick attribute.

◆ getAddToCartLink()

BxDolPayments::getAddToCartLink ( $iVendorId,
$mixedModuleId,
$iItemId,
$iItemCount,
$bNeedRedirect = false,
$aCustom = array() )

Returns the whole "Add To Cart" link including HTML tag BUTTON and cart JavaScript code.

◆ getCartJs()

BxDolPayments::getCartJs ( $sType = '',
$iVendorId = 0 )

Returns cart JavaScript code which should be included in the page to make "Add To Cart" and "Subscribe" buttons work properly.

◆ getInstance()

BxDolPayments::getInstance ( )
static

Implements iBxDolSingleton.

◆ getPaymentProvider()

BxDolPayments::getPaymentProvider ( $iVendorId,
$sVendorProvider,
$sPaymentType = '' )
See also
BxDolPayments\getProviderOptions

◆ getSubscribeJs()

BxDolPayments::getSubscribeJs ( $iVendorId,
$sVendorProvider,
$mixedModuleId,
$iItemId,
$iItemCount = 1,
$sRedirect = '',
$aCustom = array() )

Returns "Subscribe" JavaScript code to use in onclick attribute.

◆ getSubscribeJsWithAddons()

BxDolPayments::getSubscribeJsWithAddons ( $iVendorId,
$sVendorProvider,
$mixedModuleId,
$iItemId,
$iItemCount = 1,
$sItemAddons = '',
$sRedirect = '',
$aCustom = array() )

Returns "Subscribe" JavaScript code to use in onclick attribute.

◆ getSubscribeLink()

BxDolPayments::getSubscribeLink ( $iVendorId,
$sVendorProvider,
$mixedModuleId,
$iItemId,
$iItemCount = 1,
$sRedirect = '',
$aCustom = array() )

Returns the whole "Subscribe" link including HTML tag BUTTON and cart JavaScript code.

◆ isPaymentProvider()

BxDolPayments::isPaymentProvider ( $iVendorId,
$sVendorProvider,
$sPaymentType = '' )
See also
BxDolPayments\isProviderOptions

◆ subscribeWithAddons()

BxDolPayments::subscribeWithAddons ( $iVendorId,
$sVendorProvider,
$mixedModuleId,
$iItemId,
$iItemCount = 1,
$sItemAddons = '',
$sRedirect = '',
$aCustom = array() )

Subscribe an item in background mode.


The documentation for this class was generated from the following file:
  • inc/classes/BxDolPayments.php