abstract class vB_PaidSubscriptionMethod

Class that provides payment verification and form generation functions

Properties

vB_Registry $registry The vBulletin Registry
array $settings Settings for this Subscription Method
boolean $supports_recurring Does this Subscription Method support recurring Payments?
boolean $display_feedback Should we display the feedback from this Subscription Gateway?
array $paymentinfo An array of information regarding the payment
mixed $transaction_id The transaction ID
integer $type The payment Type
string $error The error String (if any)
string $error_code The error code (if any)

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

Details

at line 104
__construct(vB_Registry $registry)

Constructor

Parameters

vB_Registry $registry The vBulletin Registry

at line 125
abstract 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 140
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