Function __global->make_cart_payment_button
Definitions
sources/shopping.php
- Make a shopping cart payment 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 |
|---|---|---|---|---|---|---|---|
| $order_id | AUTO_LINK | No | No | required parameter | N/A | N/A | Order ID |
| $currency | ID_TEXT | No | No | required parameter | N/A | N/A | The currency to use |
| $price_points | integer | No | No | 0 | N/A | N/A | Transaction price in points |
Returns
- The button
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Make a shopping cart payment button.
*
* @param AUTO_LINK $order_id Order ID
* @param ID_TEXT $currency The currency to use
* @param integer $price_points Transaction price in points
* @return Tempcode The button
*/
function make_cart_payment_button(int $order_id, string $currency, int $price_points = 0) : object
* Make a shopping cart payment button.
*
* @param AUTO_LINK $order_id Order ID
* @param ID_TEXT $currency The currency to use
* @param integer $price_points Transaction price in points
* @return Tempcode The button
*/
function make_cart_payment_button(int $order_id, string $currency, int $price_points = 0) : object

