13.01.2013 Views

Connecting to PaymentTrust's Secure Transaction Network - WorldPay

Connecting to PaymentTrust's Secure Transaction Network - WorldPay

Connecting to PaymentTrust's Secure Transaction Network - WorldPay

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

STLink will return the following items for a Query Request (Q) on<br />

Foreign Exchange<br />

Field Name Data Type Data Size Description<br />

MerchantId Numeric N/A<br />

Permanent Merchant ID assigned by PaymentTrust Ltd.<br />

Example 100000<br />

<strong>Transaction</strong>Type Alpha 2 <strong>Transaction</strong> Type, “FX” for Foreign Exchange.<br />

Order number submitted by the Merchant or a number<br />

OrderNumber Alphanumeric 35<br />

generated by PaymentTrust Ltd. if order number was not<br />

specified.<br />

Example “10098987”<br />

StrId Numeric N/A Reference Number from STLink<br />

RequestType Alpha 1 'X' Rate Request<br />

FXID Numeric N/A<br />

Reference Number from Foreign Exchange system.<br />

Example “10003606”<br />

ISO standard numeric ids<br />

CurrencyId Numeric N/A Example 840 = USD, 124 = CAD, 826 = GBP<br />

Note: Please see Appendix B for complete list of values.<br />

Converted CurrencyId. ISO standard numeric ids. Only<br />

ConvertedCurren<br />

cyId<br />

Numeric N/A<br />

returned for X requests.<br />

Example 840 = USD, 124 = CAD, 826 = GBP<br />

Note: Please see Appendix B for complete list of values.<br />

<strong>Transaction</strong> amount. Up <strong>to</strong> 4 decimals maximum. Decimal<br />

Amount Numeric N/A varies based on CurrencyId.<br />

Example 840 = “56.78”, 392 = “99”, 048 = “125.333”<br />

ConvertedAmoun<br />

t<br />

Numeric N/A<br />

Converted amount. Up <strong>to</strong> 4 decimals maximum. Decimal<br />

varies based on CurrencyId. Only returned for X requests.<br />

Example 840 = “56.78”, 392 = “99”, 048 = “125.333”<br />

IsRefund Numeric 1<br />

''1” for "Refund", “0” for "Non Refund", Only returned for X<br />

requests<br />

FXRate Numeric N/A<br />

The current foreign exchange rate. Decimal length varies.<br />

Example “0.84566”<br />

ExpiryTime<br />

AlphaNumeri<br />

c<br />

20<br />

Date and Time the rate expires (YYYYMMDDHHMMSS).<br />

Example “20050223164000”<br />

Note: Time is in military format.<br />

FXMessageCode Numeric N/A<br />

Example “3100”<br />

Note: Please See Appendix C for complete list of Results<br />

FXMessage Alphanumeric 60<br />

Note: Please See Appendix C for complete list of Response<br />

Messages<br />

Sample Response:<br />

MerchantId^100000~<strong>Transaction</strong>Type^FX~OrderNumber^10098987~StrId^130634~RequestType^X~FXI<br />

D^10003606~CurrencyId^840~ConvertedCurrencyId^124~Amount^56.78~ConvertedAmount^48.01~FXR<br />

ate^0.84566~ExpiryTime^20050223164000~FXMessageCode^3100~FXMessage^<strong>Transaction</strong> approved<br />

179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!