Function Hook_payment_gateway_authorize->make_subscription_button
Definitions
sources/hooks/systems/payment_gateway/authorize.php
- Make a subscription (payment) button.This is for IPN-style transactions (as opposed to local transactions).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$trans_expecting_id | ID_TEXT | required parameter | N/A | N/A | Our internal temporary transaction ID |
$type_code | ID_TEXT | required parameter | N/A | N/A | The product codename |
$item_name | SHORT_TEXT | required parameter | N/A | N/A | The human-readable product title |
$purchase_id | ID_TEXT | required parameter | N/A | N/A | The purchase ID |
$price | float | required parameter | N/A | N/A | Transaction price in money |
$tax | float | required parameter | N/A | N/A | Transaction tax in money |
$currency | ID_TEXT | required parameter | N/A | N/A | The currency to use |
$length | integer | required parameter | N/A | N/A | The subscription length in the units |
$length_units | ID_TEXT | required parameter | N/A | N/A | The length units |
Return
- The button
- Type: Tempcode
- Set: N/A
- Range: N/A