Lipisha REST APIs


Complete Card


API Description

This API call completes a credit card transaction and initiates settlement of funds from the cardholder bank account into the merchant's account.

This function moves already reserved funds on the cardholder's account into your account. It's called with the transaction_index and transaction_reference returned by the authorize_card_transaction function to actually move the money to your account.

API Endpoint

The API service endpoint for making the Complete Card Transaction API call is:

http://developer.lipisha.com/index.php/v2/api/complete_card_transaction

API Request

The API request is made via HTTP POST and must be url encoded. Some of the parameters are required while others are optional. The parameters are:

Parameter Description Example
api_key Unique string specifying merchant's Lipisha API key.

This should match the api key that you have generated for your Lipisha account
3aa67677e8bf1d4c8fe886a38c03a860
api_signature Unique string specifying merchant's Lipisha API signature.

This should match the api signature that you have generated for your Lipisha account
SYetmwsNnb5bwaZRyeQ..........KhZNNkCoEx+5x=
api_version String specifying the version of the API in use 1.3.0
api_type String specifying the type of handshake or IPN call Callback
transaction_index The transaction index returned by a successful authorize_card_transaction call. 00500
transaction_reference The transaction reference returned by a successful authorize_card_transaction call. 4242424242424242

API Response

The API reponse will be returned as JSON. Each response will contain a status and content section. The parameters are:

Parameter Description Example
Status
status String specifying whether API Call executed successfully or failed SUCCESS
status_code Integers specifying status code of the API Call result 0000
status_description String containing description of the status Transaction authorized successfully
Content
transaction_reference A transaction reference for the successful authorization 1234
transaction_index A transaction index for the successful authorization {123456789}

JSON Reponse
{
  "status": {
    "status_code": "0000",
    "status_description": "Transaction Completed Successfully",
    "status": "SUCCESS"
  },
  "content": {
    "transaction_index": "{123456789}",
    "transaction_reference": "1234",
  }
}

Fork me on GitHub