Get Payment Summary

API Reference

This page provides API reference for Velocity API's Get Payment Summary operation (get-payment-summary). This operation is only applicable to wallet integration. For information on how to integrate this operation, see API.

Request

Endpoint: /mpoint/get-payment-summary
Method: GET

Sample Request

Below is a sample Get Payment Summary request:

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <get-payment-summary client-id="[integer]">
    <transaction id="[integer]">
      <card type-id="16">
        <token>[Wallet Token]</token>
      </card>
    </transaction>
    <client-info language="us" version="1.28" platform="iOS/9.0.1">
      <customer-ref/>
      <device-id>86A535F6B2A414423327</device-id>
      <ip>10.14.128.7</ip>
    </client-info>
  </get-payment-summary>
</root>

Request Parameters

get-payment-summary

Parent: root

The get-payment-summary element is required, and it has the following attribute:

ParameterFormatRequirementDescription
client-idIntegerRequiredThe unique ID of a merchant.

transaction

Parent: root: get-payment-summary

The get-payment-summary element requires at least one transaction child, and it may have multiple transaction children.

Each transaction child element has the following attribute:

ParameterFormatRequirementDescription
idIntegerRequiredA unique transaction identification number of a transaction.

card

Parent: root: get-payment-summary: transaction

The card element is required, and it has the following attribute:

ParameterFormatRequirementDescription
type-idIntegerRequiredThe type of card used for a transaction.

token

Parent: root: get-payment-summary: transaction

The token element is required, and it has the following text content:

ParameterFormatRequirementDescription
tokenStringRequiredThe encrypted alpha-numeric string to represent card information used in a third-party wallet.

client-info

Parent: root: get-payment-summary

The client-info element is required, and it has the following attributes:

ParameterFormatRequirementDescription
languageStringRequiredThe language used for a transaction.
versionStringRequiredThe version used for a transaction.
platformStringRequiredPlatform details.

customer-ref

Parent: root: get-payment-summary: client-info

The customer-ref element is optional, and it has the following text content:

ParameterFormatRequirementDescription
customer reference IDStringOptionalA merchant-generated ID for the customer, for internal reference.

device-id

Parent: root: get-payment-summary: client-info

The device-id element is required, and it has the following text content:

ParameterFormatRequirementDescription
device IDStringRequiredThe unique device identification number from which a transaction is conducted.

ip

Parent: root: get-payment-summary: client-info

The ip element is required, and it has the following text content:

ParameterFormatRequirementDescription
IP addressStringRequiredThe client's IP address.

Response

Sample Response

If the Get Payment Summary request is successful, the masked card details are shown to a customer as a response like the following:

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <card id="7" charge-type-id="2">
    <card-number-mask>540287******4924</card-number-mask>
    <expiry>10/17</expiry>
    <card-holder-name>Joe Test</card-holder-name>
    <address country-id="200">
      <first-name>Joe</first-name>
      <last-name>Test</last-name>
      <street>4000 Ponce De Leon Blvd</street>
      <postal-code>33146</postal-code>
      <city>Coral Gables</city>
      <state>FL</state>
    </address>
  </card>
</root>

Response Parameters

card

Parent: root

The card element is required, and it has the following attributes:

ParameterFormatRequirementDescription
idIntegerRequiredThe ID which indicates the type of card used for a transaction.
charge-type-idIntegerRequiredThe ID to indicate the type of wallet used for a transaction.

card-number-mask

Parent: root: card

The card-number-mask element is required, and it has the following text content:

ParameterFormatRequirementDescription
masked card numberStringRequiredThe masked value of a card number.

expiry

Parent: root: card

The expiry element is required, and it has the following text content:

ParameterFormatRequirementDescription
expiration dateStringRequiredThe expiration date of a card.

card-holder-name

Parent: root: card

The card-holder-name element is required, and it has the following text content:

ParameterFormatRequirementDescription
cardholder nameStringRequiredThe name of the cardholder.

address

Parent: root: card

The address element is required, and it has the following attribute:

ParameterFormatRequirementDescription
country-idIntegerRequiredThe country code of the cardholder's mailing address.

first-name

Parent: root: card: address

The first-name element is required, and it has the following text content:

ParameterFormatRequirementDescription
first nameStringRequiredThe cardholder's first name, as listed in their mailing address.

last-name

Parent: root: card: address

The last-name element is required, and it has the following text content:

ParameterFormatRequirementDescription
last nameStringRequiredThe cardholder's last name, as listed in their mailing address.

street

Parent: root: card: address

The street element is required, and it has the following text content:

ParameterFormatRequirementDescription
street addressStringRequiredThe cardholder's street address.

postal-code

Parent: root: card: address

The postal-code element is required, and it has the following text content:

ParameterFormatRequirementDescription
postal codeStringRequiredThe postal code for the cardholder's mailing address..

city

Parent: root: card: address

The city element is required, and it has the following text content:

ParameterFormatRequirementDescription
cityStringRequiredThe city in the customer's mailing address.

state

Parent: root: card: address

The state element is required, and it has the following text content:

ParameterFormatRequirementDescription
stateStringRequiredThe state in the customer's mailing address.