* __construct()
Constructor method, sets the account, secret key, and the mode properties. These will default to the constant values if not specified.
bluepay
bluepay
([ $bluepay_post_vars = array()])
Performs the exact same operations as the PHP5 'http_build_query' function
void
do_http_build_query
( &$data)
* formatAmount()
Will format an amount value to be in the expected format for the POST.
void
formatAmount
( $amount)
void
format_length
([ $length = 0], [ $unit = ''])
void
format_unit
([ $length = 0], [ $unit = ''])
* parseResponse()
This method will parse the response parameter values into the respective properties.
void
parseResponse
()
Function for printing the recurring payment processor custom generated form via POST method.
string
print_recurring_payment_form
([string $startdate = ''], [integer $subscriptionid = 0], [string $roleid = 0], [integer $amount = 0], [string $totaloccurrences = 9999], [integer $trialamount = 0], [string $trialoccurrences = 0], [integer $units = ''], [string $length = 0], [string $description = ''], [integer $onsubmit = ''], [integer $ismodify = 0], [string $iscancel = 0])
-
string
$startdate: subscription start date (default now/today) format: YYYY-MM-DD
-
integer
$subscriptionid: subscription id
-
string
$roleid: amount to process
-
integer
$amount: total occurrences (max 9999) default 9999 (no end date until user cancels themselve)
-
string
$totaloccurrences: trial amount to process (default 0)
-
integer
$trialamount: trial occurrences (max 99) default 0
-
string
$trialoccurrences: unit (format: months or days)
-
integer
$units: length (format: can be 1 - 12 or 7 - 365)
-
string
$length: transaction description
-
string
$description: js onsubmit form code
-
integer
$onsubmit: ismodify subscription modify update for authorize.net (default 0 = no)
-
integer
$ismodify: iscancel subscription cancellation request (default 0 = no)
-
string
$iscancel: custom subscription info
* process()
Will first generate the tamper proof seal, then populate the POST query, then send it, and store the response, and finally parse the response.
void
process
()
* rebAdd()
Will add a rebilling cycle.
void
rebAdd
()
* setCustInfo()
Sets the customer specified info.
void
setCustInfo
()
Helper function for do_http_build_query
void
toString
( $string)