UNA
Loading...
Searching...
No Matches
BxPaymentProviderStripe Class Reference
Inheritance diagram for BxPaymentProviderStripe:
BxPaymentProviderStripeBasic iBxBaseModPaymentProvider BxBaseModPaymentProvider BxDol

Public Member Functions

 __construct ($aConfig)
 initializeCheckout ($iPendingId, $aCartInfo, $sRedirect='')
 finalizeCheckout (&$aData)
 getCheckoutParamsSingle ($aParams, &$oGrid)
 getVerificationCodeCharge ($iVendorId, $iCustomerId, $fAmount, $sCurrency)
 checkVerificationCodeCharge ($iVendorId, $iCustomerId, $aResult)
 getVerificationCodeSubscription ($iVendorId, $iCustomerId, $sSubscription, $sCurrency)
 checkVerificationCodeSubscription ($iVendorId, $iCustomerId, $aResult)
Public Member Functions inherited from BxPaymentProviderStripeBasic
 initOptions ($aOptions)
 addJsCss ()
 getJsObject ($aParams=array())
 notify ()
 getButtonSingle ($iClientId, $iVendorId, $aParams=array())
 getButtonSingleJs ($iClientId, $iVendorId, $aParams=array())
 getButtonRecurring ($iClientId, $iVendorId, $aParams=array())
 getButtonRecurringJs ($iClientId, $iVendorId, $aParams=array())
 getMenuItemsActionsRecurring ($iClientId, $iVendorId, $aParams=array())
 getDetailsRecurring ($iPendingId, $sCustomerId, $sSubscriptionId)
 changeDetailsRecurring ($iPendingId, $sCustomerId, $sSubscriptionId)
 getBillingRecurring ($iPendingId, $sCustomerId, $sSubscriptionId)
 changeBillingRecurring ($iPendingId, $sCustomerId, $sSubscriptionId)
 cancelRecurring ($iPendingId, $sCustomerId, $sSubscriptionId)
 getSubscription ($iPendingId, $sCustomerId, $sSubscriptionId)
Public Member Functions inherited from BxBaseModPaymentProvider
 initOptionsByVendor ($iVendorId)
 isActive ()
 isHidden ()
 getOption ($sName)
 setOption ($sName, $mixedValue, $bSave=false)
 getReturnUrl ($aParams=array())
 getReturnDataUrl ($iVendorId, $aParams=array())
 getNotifyUrl ($iVendorId, $aParams=array())
 needRedirect ()
 getJsObject ()
 finalizedCheckout ()
 isSubscriptionStatus ($sStatus, $aSubscription, $sStatusKey='status')
Public Member Functions inherited from iBxBaseModPaymentProvider
 initializeCheckout ($iPendingId, $aCartInfo)
 finalizedCheckout ()

Protected Member Functions

 _createToken ($aCard)
 _createCustomer ($sType, $sToken, $aClient)
 _createCharge ($sToken, $iPendingId, &$aClient, &$aCartInfo)
 _createSubscription ($sToken, $iPendingId, &$aClient, &$aCartInfo)
 _createCard ($sType, $sCustomerId, $sToken)
 _retrieveCard ($sCustomerId, $sCardId='')
 _retrieveCoupon ($sId)
 _getButtonJs ($sType, $iClientId, $iVendorId, $aParams=array())
 _getVerificationCodeCharge ($iVendorId, $iCustomerId, $fAmount, $sCurrency)
 _checkVerificationCodeCharge ($iVendorId, $iCustomerId, $aResult)
 _getVerificationCodeSubscription ($iVendorId, $iCustomerId, $sSubscription, $sCurrency)
 _checkVerificationCodeSubscription ($iVendorId, $iCustomerId, $aResult)
Protected Member Functions inherited from BxPaymentProviderStripeBasic
 _getPublicKey ()
 _getSecretKey ()
 _retrieveCustomer ($sType, $sId)
 _retrieveCharge ($sId)
 _retrieveSubscription ($sCustomerId, $sSubscriptionId)
 _cancelSubscription ($sCustomerId, $sSubscriptionId)
 _retrievePaymentMethod ($sPaymentMethodId)
 _retrieveProduct ($sId)
 _listPlans ($iLimit=100)
 _retrieveEvent ($sId)
 _processEvent ()
 _processEventInvoicePaymentSucceeded (&$aEvent)
 _processEventChargeRefunded (&$aEvent)
 _processEventCustomerSubscriptionDeleted (&$aEvent)
 _processException ($sMessage, &$oException)
 _getData (&$aEvent, $bRetrieve=true)
 _getDataInvoicePaymentSucceeded (&$aEvent, $bRetrieve=true)
 _getDataChangeDetailsRecurring ($iPendingId)
 _getButton ($sType, $iClientId, $iVendorId, $aParams=array())
Protected Member Functions inherited from BxBaseModPaymentProvider
 getOptionsByPending ($iPendingId)
 getOptionsByVendor ($iVendorId)
 log ($mixedContents, $sTitle='')

Additional Inherited Members

Protected Attributes inherited from BxPaymentProviderStripeBasic
 $_sFormDetails
 $_sFormDisplayDetailsEdit
 $_sFormCard
 $_sFormDisplayCardAdd
 $_iMode
 $_bCheckAmount
 $_bProrate
 $_oCustomer
Protected Attributes inherited from BxBaseModPaymentProvider
 $MODULE
 $_oModule
 $_sLangsPrefix
 $_iId
 $_sName
 $_sCaption
 $_sPrefix
 $_iVendor
 $_aOptions
 $_bUseSsl
 $_bRedirectOnResult
 $_aSbsStatuses
 $_aIncludeJs
 $_aIncludeCss

Constructor & Destructor Documentation

◆ __construct()

BxPaymentProviderStripe::__construct ( $aConfig)

Reimplemented from BxPaymentProviderStripeBasic.

Member Function Documentation

◆ _createCharge()

BxPaymentProviderStripe::_createCharge ( $sToken,
$iPendingId,
& $aClient,
& $aCartInfo )
protected

Hooks:

'bx_payment', 'stripe_create_charge' - hook to override charge data redurned by payment provider

  • $unit_name - equals bx_payment
  • $action - equals stripe_create_charge
  • $object_id - pending transaction id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

◆ _createCustomer()

BxPaymentProviderStripe::_createCustomer ( $sType,
$sToken,
$aClient )
protected

Hooks:

'bx_payment', 'stripe_create_customer' - hook to override customer data redurned by payment provider

  • $unit_name - equals bx_payment
  • $action - equals stripe_create_customer
  • $object_id - not used
  • $sender_id - client (buyer) profile id
  • $extra_params - array of additional params with the following array keys:

◆ _createSubscription()

BxPaymentProviderStripe::_createSubscription ( $sToken,
$iPendingId,
& $aClient,
& $aCartInfo )
protected

Hooks:

'bx_payment', 'stripe_create_subscription' - hook to override subscription data redurned by payment provider

  • $unit_name - equals bx_payment
  • $action - equals stripe_create_subscription
  • $object_id - pending transaction id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

◆ _getButtonJs()

BxPaymentProviderStripe::_getButtonJs ( $sType,
$iClientId,
$iVendorId,
$aParams = array() )
protected

Hooks:

'bx_payment', 'stripe_get_button' - hook to override checkout/subscibe button

  • $unit_name - equals bx_payment
  • $action - equals stripe_get_button
  • $object_id - not used
  • $sender_id - client (buyer) profile id
  • $extra_params - array of additional params with the following array keys:

◆ checkVerificationCodeCharge()

BxPaymentProviderStripe::checkVerificationCodeCharge ( $iVendorId,
$iCustomerId,
$aResult )

Hooks:

'bx_payment', 'stripe_verify_charge' - hook to override code verification for 'charge' action

  • $unit_name - equals bx_payment
  • $action - equals stripe_verify_charge
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

◆ checkVerificationCodeSubscription()

BxPaymentProviderStripe::checkVerificationCodeSubscription ( $iVendorId,
$iCustomerId,
$aResult )

◆ finalizeCheckout()

BxPaymentProviderStripe::finalizeCheckout ( & $aData)

◆ getVerificationCodeCharge()

BxPaymentProviderStripe::getVerificationCodeCharge ( $iVendorId,
$iCustomerId,
$fAmount,
$sCurrency )

Hooks:

'bx_payment', 'stripe_get_code_charge' - hook to override verification code for 'charge' action

  • $unit_name - equals bx_payment
  • $action - equals stripe_get_code_charge
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

◆ getVerificationCodeSubscription()

BxPaymentProviderStripe::getVerificationCodeSubscription ( $iVendorId,
$iCustomerId,
$sSubscription,
$sCurrency )

Hooks:

'bx_payment', 'stripe_get_code_subscription' - hook to override verification code for 'subscribe' action


The documentation for this class was generated from the following file:
  • modules/boonex/payment/classes/BxPaymentProviderStripe.php