Response Parameters
API Reference: Pay
See the following sections for descriptions of Pay response parameters:
For Pay sample code, see Pay.
psp-info
psp-info
Parent: root
The psp-info
element is required, and it has the following attributes:
Parameter | Format | Requirement | Description |
---|---|---|---|
id | Integer | Required | Internal ID of the PSP in Velocity. For Wallet transactions, this describes the wallet ID information. |
merchant-account | String | Conditional Requirement: Required for Wallet transactions. | The merchant ID configured and used for this transaction. This will be needed to pass/configure as the merchant-account value for a third-party Wallet transaction.Applicable to Wallet transactions. |
type | Integer | Required | The payment type, for backend use. See Reference for possible values. |
url
url
Parent: root: psp-info
The url
element is required for Card, APM, and Installment transactions, and it has the following attributes:
Parameter | Format | Requirement | Description |
---|---|---|---|
content-type | String | Optional | The content type used for the request to the PSP. Applicable to Card, APM, Online Banking, and Installment transactions. |
method | Integer | Conditional Requirement: Optional for Wallet transactions. | The method used for submitting the request. This indicates whether the url value is an overlay or a redirection to a specified URL. Possible values:
|
type-id | Integer | Optional | The type of transaction used for making payment. Applicable to Online Banking transactions. |
The url
element has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
URL | String | Conditional Requirement: Optional for Wallet transactions. | The URL of the provider, which can be used for redirection or the overlay. |
card-number
card-number
Parent: root: psp-info
The card-number
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
card number | Integer | Conditional Requirement: Required for Card and Installment transactions. | The number on the payment card. Applicable to Card and Installment transactions. |
expiry-month
expiry-month
Parent: root: psp-info
The expiry-month
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
expiration month | Integer, 2N | Conditional Requirement: Required for Card and Installment transactions. | The month in the payment card's expiration date. Applicable to Card and Installment transactions. |
expiry-year
expiry-year
Parent: root: psp-info
The expiry-year
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
expiration year | Integer | Conditional Requirement: Required for Card and Installment transactions. | The year in the payment card's expiration date. Applicable to Card and Installment transactions. |
cvc
cvc
Parent: root: psp-info
The cvc
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
CVC | Integer | Conditional Requirement: Required for Card and Installment transactions. | The card's security code. Applicable to Card and Installment transactions. |
head
head
Parent: root: psp-info
The head
element is required for Wallet transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
head | String | Conditional Requirement: Required for Wallet transactions. | The script received in the head node in the Initialize response, which we need to load on the HTML DOM.Applicable to Wallet transactions. |
body
body
Parent: root: psp-info
The body
element is required for Wallet transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
body | String | Conditional Requirement: Required for Wallet transactions. | The script received in the body node in the Initialize response.Applicable to Wallet transactions. |
session-data
session-data
Parent: root: psp-info
The session-data
element is required for web-based Apple Pay transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
session data | String | Conditional Requirement: Required for web-based Apple Pay transactions. | This data must be passed as-is to Apple Pay. Upon verification of the data, Apple Pay provides access to the wallet. Applicable to web-based Apple Pay transactions. |
auth-token
auth-token
Parent: root: psp-info
The auth-token
element is applicable to Wallet, Online Banking, and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
authentication token | String | Conditional Requirement: Required for Online Banking and Installment transactions. Optional for Wallet transactions. | The authentication token for this payment. Applicable to Wallet, Online Banking, and Installment transactions. |
name
name
Parent: root: psp-info
The name
element is required for Card, APM, Online Banking, and Installment transactions. It has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
name | String | Conditional Requirement: Required for Card, APM, Online Banking, and Installment transactions. Optional for Wallet transactions. | The name associated with the method of payment used in this transaction. |
clientinfo
clientinfo
Parent: root: psp-info
The clientinfo
element is optional, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
client information | String | Optional | Additional information about the client. Applicable to Card and Installment transactions. |
accept-url
accept-url
Parent: root: psp-info
The accept-url
element is optional, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
accept URL | String | Optional | The URL to which Velocity directs a customer after successfully completing a payment transaction. The URL is used for redirecting to either the HPP or merchant’s page after a payment completion. Note: If you do not provide this parameter, Velocity uses the default URL. Applicable to Card, Online Banking, and Installment transactions. |
return-url
return-url
Parent: root: psp-info
The return-url
element is optional, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
return URL | String | Optional | The absolute URL to the back office of a merchant where Velocity POP sends the payment status. Note: If you do not provide this parameter, Velocity uses the default URL. Applicable to Card and Installment transactions. |
hidden-fields
hidden-fields
The hidden-fields
element is applicable to Card, APM, and Online Banking transactions. It can have several children; see their descriptions below.
merchant_account_id
merchant_account_id
Parent: root: psp-info: hidden-fields
The merchant_account_id
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
merchant account ID | String | Conditional Requirement: Required for Card and Installment transactions. | The merchant ID configured and used for this transaction. Applicable to Card and Installment transactions. |
request_id
request_id
Parent: root: psp-info: hidden-fields
The request_id
element is required for Card transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
request ID | String | Conditional Requirement: Required for Card transactions. | The request ID. Applicable to Card transactions. |
transaction_type
transaction_type
Parent: root: psp-info: hidden-fields
The transaction_type
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
transaction type | Integer | Conditional Requirement: Required for Card and Installment transactions. | A numerical code for the type of transaction. See Reference for possible values. Applicable to Card and Installment transactions. |
requested_amount
requested_amount
Parent: root: psp-info: hidden-fields
The requested_amount
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
requested amount | Integer | Conditional Requirement: Required for Card and Installment transactions. | The amount requested in this transaction. Applicable to Card and Installment transactions. |
requested_amount_currency
requested_amount_currency
Parent: root: psp-info: hidden-fields
The requested_amount_currency
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
currency | Integer | Conditional Requirement: Required for Card and Installment transactions. | The currency of the amount requested in this transaction Applicable to Card and Installment transactions. |
client-id
client-id
Parent: root: psp-info: hidden-fields
The client-id
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
client ID | Integer | Conditional Requirement: Required for Card and Installment transactions. | A unique ID configured for a merchant on the Velocity POP. Applicable to Card and Installment transactions. |
account-id
account-id
Parent: root: psp-info: hidden-fields
The account-id
element is optional for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
account ID | String | Optional | The identification number of a merchant account. Applicable to Card and Installment transactions. |
requested_amount_country
requested_amount_country
Parent: root: psp-info: hidden-fields
The requested_amount_country
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
country code | Integer | Conditional Requirement: Required for Card and Installment transactions. | The country code for the amount requested in this transaction. See Reference for possible values. Applicable to Card and Installment transactions. |
store-card
store-card
Parent: root: psp-info: hidden-fields
The store-card
element is optional for Card, APM, and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
store card | Boolean | Conditional Requirement: Required for Card, APM, and Installment transactions. | If set to true , the payment method has been stored to Velocity's vault.Applicable to Card, APM, and Installment transactions. |
requested_currency_id
requested_currency_id
Parent: root: psp-info: hidden-fields
The requested_currency_id
element is optional for Card and APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
requested currency ID | Integer | Optional | The identification number of the currency called during a transaction. Applicable to Card and APM transactions. |
transactionId
transactionId
Parent: root: psp-info: hidden-fields
The transactionId
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
transaction ID | Integer | Conditional Requirement: Required for Card and Installment transactions. | The identification number of a transaction. Applicable to Card and Installment transactions. |
payment_ip_address
payment_ip_address
Parent: root: psp-info: hidden-fields
The payment_ip_address
element is required for Card transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
payment IP address | String | Conditional Requirement: Required for Card transactions. | The payment IP address. Applicable to Card transactions. |
email
email
Parent: root: psp-info: hidden-fields
The email
element is required for Card transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
email address | String | Conditional Requirement: Required for Card transactions. | The client's email address. Applicable to Card transactions. |
phone
phone
Parent: root: psp-info: hidden-fields
The phone
element is required for Card transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
phone number | Integer | Conditional Requirement: Required for Card transactions. | The client's phone number. Applicable to Card transactions. |
card-type-id
card-type-id
Parent: root: psp-info: hidden-fields
The card-type-id
element is required for Card and Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
test | Integer | Conditional Requirement: Required for Card and Installment transactions. | The numerical code for the method of payment. See Reference for possible values. Applicable to Card and Installment transactions. |
field_name...
and field_value...
field_name...
and field_value...
Parent: root: psp-info: hidden-fields
Elements describing additional fields can be returned in the hidden-fields
object for Card transactions. They will appear as below:
Element | Requirement | Format of text content | Description of text content |
---|---|---|---|
field_name_1 | Optional | String | The name of the first field. Applicable to Card transactions. |
field_name_2 | Optional | String | The name of the second field. Applicable to Card transactions. |
field_name_3 | Optional | String | The name of the third field. Applicable to Card transactions. |
field_value_3 | Optional | String | The pre-entered value of the third field. Applicable to Card transactions. |
field_name_4 | Optional | String | The name of the fourth field. Applicable to Card transactions. |
field_value_4 | Optional | String | The pre-entered value of the fourth field. Applicable to Card transactions. |
card_type
card_type
Parent: root: psp-info: hidden-fields
The card_type
element is required for Card transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
card type | String | Conditional Requirement: Required for Card transactions. | The name of the payment method. Applicable to Card transactions. |
notification_url_1
notification_url_1
Parent: root: psp-info: hidden-fields
The notification_url_1
element is optional, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
notification URL | Integer | Optional | The absolute URL to the back office of a merchant where Velocity POP sends the payment status. Note: If you do not provide this parameter, Velocity uses the default URL. Applicable to Card transactions. |
merchant
merchant
Parent: root: psp-info: hidden-fields
The merchant
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
merchant data | String | Optional | An identifier for the merchant. Applicable to APM transactions. |
order.id
order.id
Parent: root: psp-info: hidden-fields
The order.id
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
order ID | String | Optional | The order ID that a merchant generates. Note: Some payment providers have strict guidelines for order-no . The recommended pattern is "[a-zA-Z0-9._-] .Applicable to APM transactions. |
order.amount
order.amount
Parent: root: psp-info: hidden-fields
The order.amount
element is required for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
order amount | Integer | Conditional Requirement: Required for APM transactions. | The total amount that a customer is charged for a payment transaction in a country’s smallest currency. For example, the smallest currency of USD is the penny ($0.01). If the transaction amount is $120.30, then the amount field contains value 12030 .Note: The amount is always a non-decimal value in the request. The object amount contains the country-id and currency-id parameters.Applicable to APM transactions. |
order.currency
order.currency
Parent: root: psp-info: hidden-fields
The order.currency
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
order currency | String | Optional | The currency of the order amount. Applicable to APM transactions. |
session.id
session.id
Parent: root: psp-info: hidden-fields
The session.id
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
session ID | String | Optional | The ID of a session used for multiple payment transactions during one payment flow. For example, this is used in a split payment or a retry of a failed payment transaction. Note: A split abandoned payment occurs when a customer starts a new transaction and abandons a current split payment. In this case, the session.id value is sent back in the Initialize request with the full amount.Applicable to APM transactions. |
transaction.id
transaction.id
Parent: root: psp-info: hidden-fields
The transaction.id
element is required for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
transaction ID | Integer | Conditional Requirement: Required for APM transactions. | A unique transaction identification number of a transaction. Applicable to APM transactions. |
sourceOfFunds.type
sourceOfFunds.type
Parent: root: psp-info: hidden-fields
The sourceOfFunds.type
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
payment method type | String | Optional | The type of payment method that serves as the source of funds for this transaction. Applicable to APM transactions. |
mpoint-id
mpoint-id
Parent: root: psp-info: hidden-fields
The mpoint-id
element is optional for APM transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
mpoint ID | Integer | Optional | In this transaction's Initialize response, this is the value of the transaction element's id attribute.Applicable to APM transactions. |
enc
enc
Parent: root: psp-info: hidden-fields
The enc
element is required for Online Banking transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
enc | String | Conditional Requirement: Required for Online Banking transactions. | Applicable to Online Banking transactions. |
isAccountOnFileSelectionShown
isAccountOnFileSelectionShown
Parent: root: psp-info: hidden-fields
The isAccountOnFileSelectionShown
element is required for Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
Boolean | Boolean | Conditional Requirement: Required for Installment transactions. | If true , the selected account on file is shown on the payment confirmation page.Applicable to Installment transactions. |
variantCode
variantCode
Parent: root: psp-info: hidden-fields
The variantCode
element is required for Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
variant code | Integer | Conditional Requirement: Required for Installment transactions. | The variant code. Applicable to Installment transactions. |
isPaymentProductDetailsShown
isPaymentProductDetailsShown
Parent: root: psp-info: hidden-fields
The isPaymentProductDetailsShown
element is required for Installment transactions, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
Boolean | Boolean | Conditional Requirement: Required for Installment transactions. | If true , details of the payment product are shown on the payment confirmation page.Applicable to Installment transactions. |
thirdPartyData
thirdPartyData
Parent: root: psp-info: hidden-fields
The thirdPartyData
element is required for Installment transactions, and it contains the child installment
.
Each installment
child element has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
installment number | Integer | Conditional Requirement: Required for Installment transactions. | The numerical position of this payment in a series of installment payments. For example, 5 indicates that this is the fifth payment.Applicable to Installment transactions. |
card-brands
card-brands
Parent: root: psp-info: hidden-fields
The card-brands
element is optional for an Apple Pay wallet transaction using a mobile channel, and it has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
list of cards | String, formatted as a comma-separated list | Optional | This is the list of cards the merchant must send to the Apple Pay wallet. Only these cards will be visible or available to select. For example, 'MASTERCARD', 'VISA', 'DISCOVER', 'AMEX' .Applicable to Apple Pay wallet transactions using a mobile channel. |
message
message
Parent: root: psp-info
The message
element is required, and it has the following attributes:
Parameter | Format | Requirement | Description |
---|---|---|---|
language | String | Required | The language that Velocity uses as default when translating the payment pages. Note: Velocity language codes are based upon the ISO- 639-1 standard. Refer to https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for details. |
status
status
Parent: root
The status
element is required, and it has the following attributes:
Parameter | Format | Requirement | Description |
---|---|---|---|
code | Integer | Required | The status code of the Pay API call. This depends on the payment provider. It can be 1009 , 1041 , or an error code. |
The status
element has the following text content:
Parameter | Format | Requirement | Description |
---|---|---|---|
code description | String | Required | A description of the status code. |
Updated 11 days ago