NAV undefined
bash php javascript java go python

2019-02-04

Payment Status Callback

You need to provide an endpoint in your system to receive payment callback notification from our system. You will receive the callback when end-customer completed the payment for DANA or LINKAJA. The payment callback notification will be sent as POST request to the "callback_url" that you specified on the create payment request. Note: Please give this notification a response back with status 200 so we know that our notification is received.

Version

You are currently viewing API version 2019-02-04. New version is available!

DANA

Example Payment Status Callback

DANA

{
  "external_id": "dana-ewallet",
  "amount": 1001,
  "business_id": "5850eteStin791bd40096364",
  "payment_status": "PAID",
  "transaction_date": "2019-04-07T01:35:46.658Z",
  "ewallet_type":"DANA",
  "callback_authentication_token": "sample-token-id=="
}
Parameter Type Description
external_id string Your transaction identifier that you specified in on the Generate Checkout URL request.
amount string The amount of transaction
business_id string Your business_id that registered on our system.
payment_status string The status of payment.
Notes: The statuses are: EXPIRED and PAID.
transaction_date string The time that of payment was made
callback_authentication_token string Your Callback Verfication API Key that you can found on your Xendit Dashboard. You need to verify if this had the same value.

LINKAJA

LINKAJA

{
  "external_id": "linkaja-ewallet",
  "amount": 300000,
  "items": [
    {
      "id": "123123",
      "name": "Phone Case",
      "price": 100000,
      "quantity": 1
    },
    {
      "id": "345678",
      "name": "Powerbank",
      "price": 200000,
      "quantity": 1
    }
  ],
  "status": "SUCCESS_COMPLETED",
  "ewallet_type": "LINKAJA",
  "callback_authentication_token": "sample-token-id=="
}
Parameter Type Description
external_id string Your transaction identifier that you specified in on the Generate Checkout URL request.
amount string The amount of transaction
items array of item object List of items / products.
item object item object Details of an item, it should contains: id [string], name [string], price [number], quantity [number]
status string The status of payment.
Notes: The statuses are: FAILED and SUCCESS_COMPLETED
ewallet_type string The type of ewallet that you specified when creating the payment request.
Supported ewallet types: OVO, DANA, LINKAJA
callback_authentication_token string Your Callback Verfication API Key that you can found on your Xendit Dashboard. You need to verify if this had the same value.

Changelog

Version 2020-02-01

New OVO payment flow will process payments asynchronously vs previous synchronous flow.

Version 2019-02-04

Returns a response immediately without any callbacks returned.