# Endpoint

DEVELOPMENT

 

https://dev.directpay.lk/v1/mpg/api/external/transaction/
1

PRODUCTION

 

https://prod.directpay.lk/v1/mpg/api/external/transaction/
1

# How to Integrate

Void
  • Go to the link provided below. Copy the code to your application (Ex: vscode).
  • (URL: https://doc.directpay.lk/transaction/void/

  • Enter your ‘merchantId’, ‘reference’, ‘cardId’, ‘refCode’ and ‘amount’

  • Enter your Signature and the x-api-key.
  • Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the ‘Integration’ tab).

    Signature will be generated by running the ‘Signature generate’ below script.

    Please download your private key from (URL: https://developer.directpay.lk/ and link the file to the ‘$pkeyid’ variable).

  • Server will reply with one of two 2 types of responses.
  • (Ex: SuccessResponse, ErrorResponse). (URL: https://doc.directpay.lk/transaction/void/ )

    Refund
  • Go to the link provided below. Copy the code to your application (Ex: vscode).
  • (URL: https://doc.directpay.lk/transaction/refund/ )

  • Enter your ‘merchantId’ and ‘transactionId’.

  • Enter your Signature and the x-api-key.
  • Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the ‘Integration’ tab).

    Signature will be generated by running the ‘Signature generate’ below script.

    Please download your private key from (URL: https://developer.directpay.lk/ and link the file to the ‘$pkeyid’ variable).

  • There are 2 types of Responses that the server will reply with
  • Your api-key is provided in your account (Ex: SuccessResponse, ErrorResponse). (URL: https://doc.directpay.lk/transaction/void/ )

    Status-Transaction
  • Go to the link provided below. Copy the code to your application (Ex: vscode).
  • (URL: https://doc.directpay.lk/transaction/status/transaction.html )

  • Enter your ‘merchantId’ and ‘transactionId’.

  • Enter your Signature and the x-api-key.
  • Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the ‘Integration’ tab).

    Signature will be generated by running the ‘Signature generate’ below script.

    Please download your private key from (URL: https://developer.directpay.lk/ and link the file to the ‘$pkeyid’ variable.

  • There are 2 types of Responses that the server will reply with
  • Your api-key is provided in your account (Ex: SuccessResponse, ErrorResponse). (URL: https://doc.directpay.lk/transaction/void/ )

    Status-Schedule
  • Go to the link provided below. Copy the code to your application (Ex: vscode).
  • (URL: https://doc.directpay.lk/transaction/status/transaction.html

  • Enter your ‘merchantId’.

  • Enter your Signature and the x-api-key.
  • Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the ‘Integration’ tab).

    Signature will be generated by running the ‘Signature generate’ below script.

    Please download your private key from (URL: https://developer.directpay.lk/ and link the file to the ‘$pkeyid’ variable).

  • There are 2 types of Responses that the server will reply with
  • (Ex: SuccessResponse, ErrorResponse). (URL: https://doc.directpay.lk/transaction/void/ )

    Manage Schedule
  • Go to the link provided below. Copy the code to your application (Ex: vscode).
  • (URL: https://doc.directpay.lk/transaction/manageSchedule/ )

  • Enter your ‘merchantId’, 'scheduleId', amount and 'end-date'

  • Enter your Signature and the x-api-key.
  • Your api-key is provided in your account. (URL: https://developer.directpay.lk/ under the ‘Integration’ tab).

    Signature will be generated by running the ‘Signature generate’ script.

    Please download your private key from (URL: https://developer.directpay.lk/ and link the file to the ‘$pkeyid’ variable).

  • There are 2 types of Responses that the server will reply with
  • (Ex: SuccessResponse, ErrorResponse). (URL: https://doc.directpay.lk/transaction/void/ )