pay_gateways
public class pay_gateways
| Method Summary | |
|---|---|
| integer|boolean | add_gateway(string name, string gateway, integer email_configuration_id) Add a new pay gateway |
| boolean | add_gateway_jorder_form(integer pay_gateway_id, integer order_form_id) Add a pay gateway to an order form |
| integer|boolean | add_payment(integer invoice_id, string description, string transaction_id, string subscription_id, decimal amount, integer created) Add an invoice payment |
| boolean | assign_email_templates(integer gateway_id, array assignments) Update product e-mail assignments |
| array | Get a list of available pay gateways suitable for forms::select() |
| boolean | change_package_status(integer order_id, integer invoice_id, string package_status) Change the package status and the status of all assets |
| integer|boolean | clickbank_item(integer gateway_id, integer sku_id) Get clickbank item ID for a product sku |
| boolean | clickbank_sync(integer gateway_id, integer sku_id, integer clickbank_id) Get clickbank item ID for a product sku |
| boolean | delete_log(integer id) Remove a pay gateway log |
| array|boolean | get(integer id) Get the pay gateway data |
| array | Get a list of all pay gateways with attributes. |
| array | get_all_gateways_wp(string sort, array link_extras) Get a list of all pay gateways with paging. |
| array | get_all_invoices(integer order_id, boolean package_suspension_flag) All invoices for an order |
| array | get_attributes(integer id) Get the pay gateway specific attributes |
| array | get_log(integer id) Get the pay gateway log data |
| array | get_logs_for_gateway_wp(integer pay_gateway_id, string sort, array link_extras) Get a list of all pay gateway logs for a specific gateway with paging. |
| array | get_logs_wp(string sort, array link_extras) Get a list of all pay gateway logs with paging. |
| array | get_pay_gateway_emails(integer gateway_id, integer full_set) Get templates for a specific pay gateway |
| array | invoices_for_order(integer order_id, string status) Get all invoices for an order ID |
| array | isset_gateway_jorder_form(integer pay_gateway_id, integer order_form_id) Get all order forms for a gateway |
| boolean | log(string message, string data, integer order_form_id, integer pay_gateway_id, string pay_gateway_name, string session_id, integer order_id, integer customer_id, integer user_id) Log payments |
| integer | Get the default pay gateway id |
| array | Make an array suitable for forms::select(). |
| array | oldest_unpaid_invoice(integer order_id) Get the oldest unpaid invoice for an order |
| boolean | payment_already_applied(string transaction_id) Is this a duplicate transaction? |
| boolean | process_subscription_payment(string pay_gateway_name, integer order_id, string transaction_id, string subscription_id, decimal amount_paid) Process an incoming subscription payment. |
| boolean | remove(integer id) Remove a pay gateway |
| boolean | remove_gateway_jorder_form(integer pay_gateway_id, integer order_form_id) Remove a pay gateway from an order form |
| boolean | save_attribute(integer pay_gateway_id, string key, mixed value) Remove a pay gateway from an order form |
| array | search(string terms, string sort_by, string order) Search pay gateways |
| boolean | session_payment(integer session_id, integer pay_gateway_id, string pay_gateway_name, string transaction_id, string subscription_id, decimal amount_paid) Record the payment |
| boolean | session_payment_by_transaction_id(integer transaction_id, integer pay_gateway_id, string pay_gateway_name, string subscription_id, decimal amount_paid) Record the payment using the transaction ID |
| boolean | update_gateway(integer id, string name, string gateway) Update a pay gateway |
| boolean | update_invoice_package_status(integer id, string package_status) Update the invoice package status column |
| boolean | update_status(integer id, string status, mixed paid_date) Update the invoice status |
public integer|boolean add_gateway(string name, string gateway, integer email_configuration_id)
Add a new pay gateway
public boolean add_gateway_jorder_form(integer pay_gateway_id, integer order_form_id)
Add a pay gateway to an order form
public integer|boolean add_payment(integer invoice_id, string description, string transaction_id, string subscription_id, decimal amount, integer created)
Add an invoice payment
public boolean assign_email_templates(integer gateway_id, array assignments)
Update product e-mail assignments
public array available_select()
Get a list of available pay gateways suitable for forms::select()
public boolean change_package_status(integer order_id, integer invoice_id, string package_status)
Change the package status and the status of all assets
public integer|boolean clickbank_item(integer gateway_id, integer sku_id)
Get clickbank item ID for a product sku
public boolean clickbank_sync(integer gateway_id, integer sku_id, integer clickbank_id)
Get clickbank item ID for a product sku
public boolean delete_log(integer id)
Remove a pay gateway log
public array|boolean get(integer id)
Get the pay gateway data
public array get_all_gateways_wa()
Get a list of all pay gateways with attributes.
public array get_all_gateways_wp(string sort, array link_extras)
Get a list of all pay gateways with paging.
public array get_all_invoices(integer order_id, boolean package_suspension_flag)
All invoices for an order
public array get_attributes(integer id)
Get the pay gateway specific attributes
public array get_log(integer id)
Get the pay gateway log data
public array get_logs_for_gateway_wp(integer pay_gateway_id, string sort, array link_extras)
Get a list of all pay gateway logs for a specific gateway with paging.
public array get_logs_wp(string sort, array link_extras)
Get a list of all pay gateway logs with paging.
public array get_pay_gateway_emails(integer gateway_id, integer full_set)
Get templates for a specific pay gateway
public array invoices_for_order(integer order_id, string status)
Get all invoices for an order ID
public array isset_gateway_jorder_form(integer pay_gateway_id, integer order_form_id)
Get all order forms for a gateway
public boolean log(string message, string data, integer order_form_id, integer pay_gateway_id, string pay_gateway_name, string session_id, integer order_id, integer customer_id, integer user_id)
Log payments
public integer make_default()
Get the default pay gateway id
public array make_select()
Make an array suitable for forms::select().
public array oldest_unpaid_invoice(integer order_id)
Get the oldest unpaid invoice for an order
public boolean payment_already_applied(string transaction_id)
Is this a duplicate transaction?
public boolean process_subscription_payment(string pay_gateway_name, integer order_id, string transaction_id, string subscription_id, decimal amount_paid)
Process an incoming subscription payment.
public boolean remove(integer id)
Remove a pay gateway
public boolean remove_gateway_jorder_form(integer pay_gateway_id, integer order_form_id)
Remove a pay gateway from an order form
public boolean save_attribute(integer pay_gateway_id, string key, mixed value)
Remove a pay gateway from an order form
public array search(string terms, string sort_by, string order)
Search pay gateways
public boolean session_payment(integer session_id, integer pay_gateway_id, string pay_gateway_name, string transaction_id, string subscription_id, decimal amount_paid)
Record the payment
public boolean session_payment_by_transaction_id(integer transaction_id, integer pay_gateway_id, string pay_gateway_name, string subscription_id, decimal amount_paid)
Record the payment using the transaction ID
public boolean update_gateway(integer id, string name, string gateway)
Update a pay gateway
public boolean update_invoice_package_status(integer id, string package_status)
Update the invoice package status column
public boolean update_status(integer id, string status, mixed paid_date)
Update the invoice status
SPBAS Pay Gateways