Find whether the hook auto-cancels (if it does, auto cancel the given trans-id).
?boolean
auto_cancel
(string $trans_id)
-
string
$trans_id: Transaction ID to cancel
Generate a transaction ID.
string
generate_trans_id
()
Get the IPN URL.
URLPATH
get_ipn_url
()
Get the card/gateway logos and other gateway-required details.
tempcode
get_logos
()
Find a transaction fee from a transaction amount. Regular fees aren't taken into account.
float
get_transaction_fee
(float $amount)
-
float
$amount: A transaction amount.
Handle IPN's. The function may produce output, which would be returned to the Payment Gateway. The function may do transaction verification.
array
handle_transaction
()
Make a subscription cancellation button.
tempcode
make_cancel_button
(ID_TEXT $purchase_id)
-
ID_TEXT
$purchase_id: The purchase ID.
Make a subscription (payment) button.
tempcode
make_subscription_button
(ID_TEXT $product, SHORT_TEXT $item_name, AUTO_LINK $purchase_id, float $amount, integer $length, ID_TEXT $length_units, ID_TEXT $currency)
-
ID_TEXT
$product: The product codename.
-
SHORT_TEXT
$item_name: The human-readable product title.
-
AUTO_LINK
$purchase_id: The purchase ID.
-
float
$amount: A transaction amount.
-
integer
$length: The subscription length in the units.
-
ID_TEXT
$length_units: The length units.
-
ID_TEXT
$currency: The currency to use.
Make a transaction (payment) button.
tempcode
make_transaction_button
(ID_TEXT $product, SHORT_TEXT $item_name, AUTO_LINK $purchase_id, float $amount, ID_TEXT $currency)
-
ID_TEXT
$product: The product codename.
-
SHORT_TEXT
$item_name: The human-readable product title.
-
AUTO_LINK
$purchase_id: The purchase ID.
-
float
$amount: A transaction amount.
-
ID_TEXT
$currency: The currency to use.
Store shipping address for orders
?mixed
store_shipping_address
(AUTO_LINK $order_id)
-
AUTO_LINK
$order_id: Order id
Get the gateway username.
string
_get_username
()