Versions Compared

Key

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

...

...

...

...

Description

Request for xPay information

URL: https://secure1.sandbox.directpay.online/API/v6/


Variables to send:



Parameter
Data type
Description

 Request TextverifyXpayMandatory
CompanyTokenTokenToken you got from 3G to operate this APIMandatory
XpayId
NumberxPay IDMandatory


Request example:

Code Block
languagexml
titleRequest example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <CompanyToken>XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</CompanyToken>
  <Request>verifyXpay</Request>
  <XpayId>00000</XpayId>
</API3G>


Respond:

The server will respond for the verifyXpay request according to the following results:


Parameter
Data type
Description
Result
TextResult Status
Status
TextThe status of the xPay
Sender
TextMerchant name's who sent the xPay
Receiver
TextMerchant's name who received the xPay
Currency
TextThe currency of the allocation
Amount
NumberThe amount of the allocation
DescriptionTextThe description of the xPay
ServiceTypeTextService type for current allocation

Respond example:


Code Block
languagexml
titleresponse example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
    <Result>Success</Result>
    <Status>Pending</Status>
    <Sender>Air Excel</Sender>
    <Receiver>Direct Pay Limited</Receiver>
    <Currency>USD</Currency>
    <Amount>0.40</Amount>
    <Description>Payment for flight</Description>
    <ServiceType>Safari Holiday</ServiceType>
</API3G>