class vB_PaidSubscriptionMethod_nochex 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
boolean $display_feedback Should we display the feedback from this Subscription Gateway? from vB_PaidSubscriptionMethod
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

Methods

__construct(vB_Registry $registry)

Constructor

bool
verify_payment()

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

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)

Details

__construct(vB_Registry $registry)

Constructor

Parameters

vB_Registry $registry The vBulletin Registry

at line 39
bool verify_payment()

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

Return Value

bool Whether the payment is valid

at line 190
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 133
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