Function __global->make_transaction_button

Definitions

sources/ecommerce.php

  • Make a transaction (payment) button.This is for IPN-style transactions (as opposed to local transactions).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$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 REAL required parameter N/A N/A Transaction price in money (excluding tax and shipping)
$tax_derivation array required parameter N/A N/A Transaction tax derivation
$tax REAL required parameter N/A N/A Transaction tax in money (including shipping tax)
$tax_tracking array required parameter N/A N/A Transaction tax tracking ID
$shipping_cost REAL required parameter N/A N/A Transaction shipping cost in money
$shipping_tax REAL required parameter N/A N/A Transaction shipping tax in money
$currency ID_TEXT required parameter N/A N/A The currency to use
$price_points integer 0 N/A N/A Transaction price in points
$payment_gateway ?ID_TEXT Null N/A N/A The payment gateway the payment will go via (null: autodetect)

Return

  • The button
  • Type: Tempcode
  • Set: N/A
  • Range: N/A