Versions Compared

Key

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

...

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

 


Response

The method will response with the result of your request 


Variables to send:

Parameter

Data type

Description


 Request

 Text

 chargeTokenCreditCard

Mandatory

CompanyToken

Token

Token you got from 3G to operate this API

Mandatory

TransactionToken

Token

Transaction token as accepted from the createToken.

Mandatory

CreditCardNumber

Number

Credit card number

Mandatory

CreditCardExpiry

MMYY

Month and year of expiry of credit card

Mandatory

CreditCardCVV

Number

3-4 digits of CVV

Mandatory

CardHolderName

Text

Card holder name

Mandatory

ChargeTypeTextCharge type of the cardOptional

...

Parameter

Data type

Description

Result

3/4 digits code

A code will be sent with the result of the request

ResultExplanation

Text

Free text of the result

Respond codes:

 


Code

Explanation

000

Transaction charged

200Transaction already paid

801

Request missing company token

802

Wrong CompanyToken

803

No request or error in Request type name

804

Error in XML

902

Data mismatch in one of the fields – fieldname

950

Request missing mandatory fields – fieldname

999Transaction Declined - Explanation

...


Respond example:


Code Block
languagexml
titleresponse example
<?xml version="1.0" encoding="utf-8"?>
<API3G>
 <Result>000</Result>
 <ResultExplanation>Transaction charged </ResultExplanation>
</API3G>

 

 

...