Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PAYMENT_METHODS lookup

 

PayU wallet customers can choose to set up a handshake with a merchant where the user gives the merchant permission to transact from the users PayU wallet via API. This call is used by a merchant to lookup what payment methods exist for a specific user.

...

LookupTransaction Response

ResultCode

Result code returned by PayU for transaction

Integer

ResultMessage

Result message relating to result code for transaction

VarChar (64)

DisplayMessage

Customer friendly message to display in a browser to the customer

VarChar (64)

LookupData

Array of key value pairs within entry nodes where value is a JSON object

Array of JSON objects

CreditCard key

The following fields are returned:

information

Card Type

nameOnCard

Name of card owner

description

Customer selected card description

verified

Whether the card has been verified

pmId

A token to use for transacting with the payment method

defaultPM

Flag indicating if the payment method is the users default payment method

JSON objectWallet key

The following fields are returned:

cardBalance

Card balance of the user

cashBalance

Caash balance of the user

loyaltyBalance

Loyalty balance of the user for the particular merchant

pmId

A token to use for transacting with the payment method

defaultPM

Flag indicating if the payment method is the users default payment method

JSON object

Example:

<getLookupTransactionResponse>

    <return>

        <displayMessage>Successful</displayMessage>

        <lookupData>

            <entry>

                <key>CREDITCARD</key>

                <value>

                    <item>{"information":"Visa","nameOnCard":"Chris Robb","description":"VISA Hello 0459","verified":"false","pmId":"DxcyAUk9MEE8REp0SWF8XG9JEXpBFnoVVndRZXxRYElc","defaultPM":"false"}</item>

                </value>

            </entry>

            <entry>

                <key>WALLET</key>

                <value>                 <item>{"cardBalance":"0.0","cashBalance":"0.0","loyaltyBalance":"0.0","pmId":"GwQ7CUU9XxFiEEp0VmF6UWJVEnxDFn0YSjk\u003d","defaultPM":"false"}</item>

                </value>

            </entry>

        </lookupData>

        <resultCode>00</resultCode>

        <resultMessage>Successful</resultMessage>

    </return>

</getLookupTransactionResponse>