class vB_PaidSubscriptionMethod_authorizenet extends vB_PaidSubscriptionMethod

Class that provides payment verification and form generation functions

Properties

vB_Registry $registry The vBulletin Registry from vB_PaidSubscriptionMethod
array $settings Settings for this Subscription Method from vB_PaidSubscriptionMethod
bool $supports_recurring The variable indicating if this payment provider supports recurring transactions
bool $display_feedback Display feedback via payment_gateway.php when the callback is made
array $paymentinfo An array of information regarding the payment from vB_PaidSubscriptionMethod
mixed $transaction_id The transaction ID from vB_PaidSubscriptionMethod
integer $type The payment Type from vB_PaidSubscriptionMethod
string $error The error String (if any) from vB_PaidSubscriptionMethod
string $error_code The error code (if any) from vB_PaidSubscriptionMethod
protected $form_target Form target for the a.net servers. Intended to be overloaded in the test class with differs only in that it needs to reference the a.net sandbox.

Methods

__construct(vB_Registry $registry)

Constructor

bool
verify_payment()

Perform verification of the payment, this is called from the payment gatewa

array
generate_form_html(string $hash, string $cost, string $currency, array $subinfo, array $userinfo, array $timeinfo)

Generates HTML for the subscription form page

bool
test()

Test that required settings are available, and if we can communicate with the server (if required)

string
hmac(string $key, string $data)

RFC 2104 HMAC

Details

__construct(vB_Registry $registry)

Constructor

Parameters

vB_Registry $registry The vBulletin Registry

at line 52
bool verify_payment()

Perform verification of the payment, this is called from the payment gatewa

Return Value

bool Whether the payment is valid

at line 136
array generate_form_html(string $hash, string $cost, string $currency, array $subinfo, array $userinfo, array $timeinfo)

Generates HTML for the subscription form page

Parameters

string $hash Hash used to indicate the transaction within vBulletin
string $cost The cost of this payment
string $currency The currency of this payment
array $subinfo Information regarding the subscription that is being purchased
array $userinfo Information about the user who is purchasing this subscription
array $timeinfo Array containing specific data about the cost and time for the specific subscription period

Return Value

array Compiled form information

at line 119
bool test()

Test that required settings are available, and if we can communicate with the server (if required)

Return Value

bool If the vBulletin has all the information required to accept payments

at line 175
string hmac(string $key, string $data)

RFC 2104 HMAC

Parameters

string $key Key to hash data with
string $data Data

Return Value

string MD5 HMAC