Class MatukioHelperPayment

since 2.2.0
package MatukioEvents

 Methods

Gets the PP duration

_toPPDuration(integer $days) : object
Static

Parameters

$days

integer
  • The number of days

Returns

object

Gets the branktransfer informations html

getBanktransferInfo(string $account, string $blz, string $bank, string $accountholder, string $iban, string $bic) : string
Static

Not used in the payment processing (since 2.2 plugin) Mostly used for the template generation

deprecated No longer used - translations deleted

Parameters

$account

string

-

$blz

string

-

$bank

string

-

$accountholder

string

-

$iban

string

-

$bic

string

-

Returns

string

Loads the first currency in the #__matukio_currencies database

getFirstCurrency() : mixed
Static

Returns

mixedThe database row or false

Returns the html code for the paypal form

getPayPalForm(string $payment_adress, string $eventname, string $fee, string $currency, string $returnurl) : string
Static
deprecated 2.2 - replaced through Joomla payment API plugins

Parameters

$payment_adress

string

-

$eventname

string

-

$fee

string

-

$currency

string

-

$returnurl

string

-

Returns

string

Get Matukio payment plugins (dynamicly)

getPaymentPlugins() : array
Static
since 5.3

Returns

array- String Array of available payment plugins

Generates a Universally Unique IDentifier, version 4. (truly random UUID)

getUuid(boolean $hex = false) : string
Static
see
see

Parameters

$hex

boolean
  • If TRUE return the uuid in hex format, otherwise as a string

Returns

string- A UUID, made up of 36 characters or 16 hex digits.

Validates a domain name

is_valid_domain_name(string $domain_name) : boolean
Static

Parameters

$domain_name

string
  • The host

Returns

boolean

Validates an E-Mail (bool)

validEmail(string $email) : boolean
Static

Parameters

$email

string
  • The String containing the E-Mail

Returns

boolean- false if not valid

Gets the IPN callback URL

getCallbackURL(integer $sandbox = 0, integer $ssl = 1) : string
Static

Parameters

$sandbox

integer
  • sandbox (0 false)

$ssl

integer
  • ssl (1 true)

Returns

string

Validates the incoming data against PayPal's IPN to make sure this is not a fraudelent request.

isValidIPN(string $data, integer $ssl = 1) : boolean

Parameters

$data

string
  • The data

$ssl

integer
  • Use ssl? (1)

Returns

boolean

 Properties

 

The payment plugin array used for Matukio

$matukio_payment_plugins : array

Default

null
Static