Documentation

ChargeBeeDebitComponent extends ChargeBeeComponent
in package

Table of Contents

Constants

IGNORE_PAGINATION  = true
ITEMS_PER_PAGE  = 100
PAYMENT_ROLE  = ['primary', 'backup']

Properties

$auth  : AuthComponent
$debitForm  : mixed
$isDebug  : bool
$chargeBeeTokenComponent  : ChargeBeeTokenComponent
$goCardlessClient  : mixed
$redirectFlow  : mixed

Methods

__construct()  : mixed
billingDetailsToFormEntity()  : mixed
cancelFreemiumSubscription()  : Subscription
cancelMandate()  : mixed
changePaymentRole()  : mixed
clearDebitDataFromSession()  : mixed
configureChargeBee()  : mixed
createAddonsInvoice()  : mixed
createBankAccount()  : mixed
createCard()  : mixed
createCustomer()  : mixed
createGoCardLessBankAccount()  : mixed
createGoCardLessCustomer()  : mixed
createNewCustomer()  : Customer|null
createSubscription()  : mixed
deleteGocardlessCustomer()  : mixed
deletePaymentSource()  : mixed
downloadCreditNote()  : mixed
downloadInvoice()  : mixed
enableDirectDebitIfDisabled()  : mixed
formatAmount()  : mixed
formatDate()  : mixed
formatInvoice()  : mixed
formatPostToSave()  : array<string|int, mixed>
formatUserBillingDataFromPost()  : array<string|int, mixed>
getActivePlans()  : mixed
getCards()  : mixed
getClient()  : mixed
getCountryIdByTwo()  : mixed
getCountryName()  : mixed
getCountryTwoById()  : mixed
getCredit()  : mixed
getCreditNotes()  : mixed
getCurrencyIcon()  : mixed
getCurrencyString()  : mixed
Get the value of currencyString by three.
getCustomer()  : mixed
getCustomerTaxRate()  : int|float
getDebitForm()  : mixed
Get the value of debitForm.
getErrorMessage()  : mixed
getFormatedSubscriptionList()  : mixed
getFreePlanIds()  : array<string|int, mixed>
getFullSubscriptionList()  : array<string|int, mixed>
getGocardlessClient()  : Client
get goCardLess client live/sandbox based on config
getInvoices()  : mixed
getMandate()  : mixed
getNoramilzedCreditNotes()  : mixed
getPostToValidation()  : array<string|int, mixed>
getStatusIcon()  : mixed
getSubscriptionList()  : array<string|int, Subscription>
getSubscriptionsByUserId()  : array<string|int, mixed>|null
getTransactionList()  : mixed
getUser()  : UserWrapper|null
Get the value of user.
handleBillingData()  : mixed
handleError()  : mixed
initDebitForm()  : mixed
isActiveSubscriptionByUserIdAndCountryIsoCode2()  : bool
loadSubscriptionList()  : array<string|int, mixed>
rebuildSessionFromPost()  : mixed
setCurrencyString()  : self
Add value for currencyString by three and icon.
setDebitForm()  : self
Set the value of debitForm.
setUser()  : self
Set the value of user.
successMessage()  : mixed
updateBillingData()  : mixed
validateUser()  : mixed
getAccountHolderName()  : mixed

Constants

Properties

Methods

billingDetailsToFormEntity()

public billingDetailsToFormEntity(mixed $chargeBeeCustomerValues) : mixed
Parameters
$chargeBeeCustomerValues : mixed

cancelFreemiumSubscription()

public cancelFreemiumSubscription(Subscription $subscription) : Subscription
Parameters
$subscription : Subscription
Return values
Subscription

changePaymentRole()

public changePaymentRole(UserWrapper $userWrapper, mixed $paymentSourceId, mixed $role) : mixed
Parameters
$userWrapper : UserWrapper
$paymentSourceId : mixed
$role : mixed

createGoCardLessBankAccount()

public createGoCardLessBankAccount(array<string|int, mixed> $postDatas) : mixed
Parameters
$postDatas : array<string|int, mixed>

createGoCardLessCustomer()

public createGoCardLessCustomer(array<string|int, mixed> $postDatas) : mixed
Parameters
$postDatas : array<string|int, mixed>

createNewCustomer()

public createNewCustomer(UserWrapper $userWrapper[, array<string|int, mixed> $post = [] ]) : Customer|null
Parameters
$userWrapper : UserWrapper
$post : array<string|int, mixed> = []
Return values
Customer|null

deleteGocardlessCustomer()

public deleteGocardlessCustomer(string $customerId) : mixed
Parameters
$customerId : string
Tags
throws
ApiException
throws
GoCardlessProException

downloadCreditNote()

public downloadCreditNote(mixed $id) : mixed
Parameters
$id : mixed

downloadInvoice()

public downloadInvoice(mixed $id) : mixed
Parameters
$id : mixed

formatAmount()

public final formatAmount(mixed $amount[, mixed $delimiters = [".", ","] ]) : mixed
Parameters
$amount : mixed
$delimiters : mixed = [".", ","]

formatDate()

public final formatDate(mixed $dateNumber[, mixed $formatWithTime = false ]) : mixed
Parameters
$dateNumber : mixed
$formatWithTime : mixed = false

formatInvoice()

public formatInvoice(mixed $invoice) : mixed
Parameters
$invoice : mixed

formatPostToSave()

public formatPostToSave(array<string|int, mixed> $postDatas) : array<string|int, mixed>
Parameters
$postDatas : array<string|int, mixed>
Return values
array<string|int, mixed>

formatUserBillingDataFromPost()

public formatUserBillingDataFromPost(mixed $data) : array<string|int, mixed>
Parameters
$data : mixed
Return values
array<string|int, mixed>

getCountryIdByTwo()

public getCountryIdByTwo(mixed $countryTwo) : mixed
Parameters
$countryTwo : mixed

getCountryName()

public getCountryName(mixed $countryTwo) : mixed
Parameters
$countryTwo : mixed

getCountryTwoById()

public getCountryTwoById(mixed $id) : mixed
Parameters
$id : mixed

getCurrencyIcon()

public getCurrencyIcon(mixed $currencyThree) : mixed
Parameters
$currencyThree : mixed

getCurrencyString()

Get the value of currencyString by three.

public getCurrencyString(mixed $currencyThree) : mixed
Parameters
$currencyThree : mixed

getCustomerTaxRate()

public getCustomerTaxRate(mixed $user) : int|float
Parameters
$user : mixed
Return values
int|float

getFreePlanIds()

public getFreePlanIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFullSubscriptionList()

public getFullSubscriptionList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getGocardlessClient()

get goCardLess client live/sandbox based on config

public getGocardlessClient() : Client
Return values
Client

getMandate()

public getMandate(string $customerId, string $bankAccountId) : mixed
Parameters
$customerId : string
$bankAccountId : string

getPostToValidation()

public getPostToValidation(array<string|int, mixed> &$rawPost) : array<string|int, mixed>
Parameters
$rawPost : array<string|int, mixed>
Return values
array<string|int, mixed>

getStatusIcon()

public getStatusIcon(mixed $status) : mixed
Parameters
$status : mixed

getSubscriptionList()

public getSubscriptionList(UserWrapper $userWrapper[, bool $includeExpired = false ]) : array<string|int, Subscription>
Parameters
$userWrapper : UserWrapper
$includeExpired : bool = false
Return values
array<string|int, Subscription>

getSubscriptionsByUserId()

public getSubscriptionsByUserId(mixed $userId) : array<string|int, mixed>|null
Parameters
$userId : mixed
Return values
array<string|int, mixed>|null

handleError()

public handleError(mixed $exception, mixed $userId[, mixed $post = [] ][, mixed $isGocardless = false ]) : mixed
Parameters
$exception : mixed
$userId : mixed
$post : mixed = []
$isGocardless : mixed = false

isActiveSubscriptionByUserIdAndCountryIsoCode2()

public isActiveSubscriptionByUserIdAndCountryIsoCode2(int $userId, string $countryIsoCode2) : bool
Parameters
$userId : int
$countryIsoCode2 : string
Return values
bool

loadSubscriptionList()

public loadSubscriptionList() : array<string|int, mixed>
Return values
array<string|int, mixed>

rebuildSessionFromPost()

public rebuildSessionFromPost(array<string|int, mixed> $valueList) : mixed
Parameters
$valueList : array<string|int, mixed>

setCurrencyString()

Add value for currencyString by three and icon.

public setCurrencyString(mixed $three, mixed $icon) : self
Parameters
$three : mixed
$icon : mixed
Return values
self

setDebitForm()

Set the value of debitForm.

public setDebitForm(mixed $debitForm) : self
Parameters
$debitForm : mixed
Return values
self

getAccountHolderName()

private getAccountHolderName([mixed $firstName = null ][, mixed $lastName = null ]) : mixed
Parameters
$firstName : mixed = null
$lastName : mixed = null

        
On this page

Search results