Function Hook_payment_gateway_paypal->make_transaction_button

Definitions

sources/hooks/systems/payment_gateway/paypal.php

  • Make a transaction (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
$shipping_cost float required parameter N/A N/A Shipping cost
$currency ID_TEXT required parameter N/A N/A The currency to use

Return

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