\PaystationPayment
Payment type to support credit-card payments through Paystation. This uses the direct ("2 party") mode, keeping the payment within the SS site.
Paystation accepts different currencies, but these are determined by the paystation gateway, which the merchant will know. Ecommerce
has to be defined accordingly. If you get an error code of 101 with a message of "merchant id disabled", it really means that the currency
is not supported.
Synopsis
class PaystationPayment
extends Payment
{
- // members
- public static array $db = ;
- protected static string $privacy_link = 'http://paystation.co.nz/privacy-policy';
- protected static string $logo = 'payment/images/payments/paystation.jpg';
- protected static string $url = 'https://www.paystation.co.nz/direct/paystation.dll?paystation';
- protected static $paystationMerchantID;
- protected static $paystationGatewayID;
- protected static boolean $test_mode = false;
- protected static boolean $cvn_mode = false;
- protected static array $credit_cards = ;
- // Inherited members from Payment
- public static array $db;
- public static array $has_one;
- protected static array $supported_methods;
- public static array $create_table_options;
- protected static string $site_currency;
- // methods
- public static void set_account()
- public static void set_test_mode()
- public static void unset_cvn_mode()
- public static void remove_credit_card()
- public void getPaymentFormFields()
- public void getPaymentFormRequirements()
- public void processPayment()
- public void doPayment()
- // Inherited methods from Payment
- public static void set_site_currency()
- public static string site_currency()
- public static void set_supported_methods()
- public static array get_supported_methods()
- public void populateDefaults()
- public void setClientIP()
- public string PaymentMethod()
- public static FieldSet combined_form_fields()
- public static An combined_form_requirements()
- public FieldSet getPaymentFormFields()
- public array getPaymentFormRequirements()
- public void processPayment()
- public void getForm()
- public void payAsRecurring()
- public void handleError()
- public void PaidObject()
Hierarchy
Extends
Members
protected
- $credit_cards
- $cvn_mode
- $logo
- $paystationGatewayID
- $paystationMerchantID
- $privacy_link
- $site_currency
—
string
The currency code used for payments. - $supported_methods
—
array
Instances of Payment supported (usable) on this site. - $test_mode
- $url
public
-
$create_table_options
Make payment table transactional. - $db
-
$db
Incomplete (default): Payment created but nothing confirmed as successful Success: Payment successful Failure: Payment failed during process Pending: Payment awaiting receipt/bank transfer etc - $has_one
Methods
public
- doPayment()
- getPaymentFormFields()
- getPaymentFormRequirements() — Returns the required fields to add to the order form, when using this payment method.
- processPayment()
- remove_credit_card()
- set_account()
- set_test_mode()
- unset_cvn_mode()
Inherited from Payment
public
- PaidObject()
- PaymentMethod() — Returns the Payment type currently in use.
- combined_form_fields() — Return a set of payment fields from all enabled payment methods for this site, given the . {@link Payment::set_supported_methods()} is used to define which methods are available.
- combined_form_requirements() — Return the form requirements for all the payment methods.
- getForm()
- getPaymentFormFields() — Return the payment form fields that should be shown on the checkout order form for the payment type. Example: for {@link DPSPayment}, this would be a set of fields to enter your credit card details.
- getPaymentFormRequirements() — Define what fields defined in {@link Order->getPaymentFormFields()} should be required.
- get_supported_methods()
- handleError()
- payAsRecurring()
- populateDefaults()
- processPayment() — Perform payment processing for the type of payment. For example, if this was a credit card payment type, you would perform the data send off to the payment gateway on this function for your payment subclass.
- setClientIP() — Set the IP address of the user to this payment record.
- set_site_currency() — Set the currency code that this site uses.
- set_supported_methods() — Set the payment types that this site supports.
- site_currency() — Return the site currency in use.