Difference between revisions of "Payment Gateway Module Parameters"

From WHMCS Documentation

(Created page with "All gateway module function calls receive a standardised list of parameters. These parameters provide data relating to the invoice the gateway module command is being invoked...")
(No difference)

Revision as of 13:30, 29 March 2016

All gateway module function calls receive a standardised list of parameters.

These parameters provide data relating to the invoice the gateway module command is being invoked for along with the configuration setting values defined in for the given payment gateway.

Certain functions will receive additional data specific to the action that is being requested. These are detailed below the standard list of variables.

Standardised Parameters

ParameterDescription
whmcsVersionThe current version of WHMCS. eg: 6.0.1-release.1
invoiceidThe invoice ID for which the gateway function has been invoked
invoicenumThe invoice number
amountThe amount due
descriptionA standardised payment descriptor - format: "[CompanyName] - Invoice #[InvoiceNum]"
clientsdetailsProvides an array of client profile data (see below)
systemurlThe url to the WHMCS installation eg. http://www.example.com/whmcs
returnurlThe invoice url to be returned to following completion or cancellation of payment
companynameThe system configured company name
nameThe display name of the payment gateway that is being called
paymentmethodThe system name of the payment gateway that is being called
typeThe type of payment gateway module
visibleWhether the payment gateway is visible
langpaynowA localised text string for "Pay Now" based on the clients selected language

Clients Details

The clients details parameter contains an array of client profile data for the client that owns the given product/service. This array includes:

ParameterDescription
firstname
lastname
fullnameFirst Name + Last Name
companyname
email
address1
address2
city
state
statecode2 Letter State Code (US & Canada Only)
postcode
country2 Letter ISO Country Code
countryname
phoneccCountry Dialing Code Prefix (eg. 1 for US, 44 for UK, etc...)
phonenumber
phonenumberformattedPhone Number in Format +X.XXXXXXX
twofaenabledTwo-Factor Status - Boolean true/false
currencyCurrency ID (relates to tblcurrencies.id)
groupidClient Group ID
languageClient defined language (defaults to empty)
customfieldsProvides an array of all custom field names and values for the current client (see below)
statusStatus of Client: Active, Inactive or Closed
notesAdmin only client notes
passwordHashed version of client area password - cannot be decrypted

Capture

The following additional parameters are made available for capture requests.

Refunds

The following additional parameters are made available for refund requests.