Function Hook_payment_gateway_authorize->make_cancel_button
Definitions
sources/hooks/systems/payment_gateway/authorize.php
- Make a subscription cancellation button.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $purchase_id | ID_TEXT | No | No | required parameter | N/A | N/A | The purchase ID |
Returns
- The button
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Make a subscription cancellation button.
*
* @param ID_TEXT $purchase_id The purchase ID
* @return Tempcode The button
*/
public function make_cancel_button(string $purchase_id) : object
* Make a subscription cancellation button.
*
* @param ID_TEXT $purchase_id The purchase ID
* @return Tempcode The button
*/
public function make_cancel_button(string $purchase_id) : object

