Versions Compared

Key

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

...

...

...

...

Description

Request for xPay information

URL: https://secure1secure.sandbox3gdirectpay.directpay.onlinecom/API/v6/


Variables to send:



Parameter
Data type
Description

Remark 
 Request TextverifyXpayMandatory
CompanyTokenTokenToken you got from 3G to operate this APIMandatory
XpayId
NumberxPay IDMandatoryAllocation ID- in create token response


Request example:

Code Block
languagexml
titleRequest example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <CompanyToken>XXXXXXX<CompanyToken>A3959B7F-XXXX37DA-XXXX44F2-XXXX9925-XXXXXXXXXXXX<5992D725GK8A</CompanyToken>
  <Request>verifyXpay</Request>
  <XpayId>00000<<XpayId>67834</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>