Konnect provides an easy payment experience for your customers and easy integration process for the developers. Payment process works by creating Payment Request and then the customers accepting the Payment Request.
You can test all our API endpoints in our Sandbox environment, by signing up on our Sandbox Platform.
which will mock your transactions to perform end-to-end testing of your Integration flow.
The base URL for production environment will be https://api.konnect.network/api/v2/
The base URL for Sandbox environment will be https://api.preprod.konnect.network/api/v2/
This endpoint initiates a new payment.
x-api-key required | string Example: 6137ad140c181c5eb44a7f88:Rp2dpHPb0mBpj3_51s86zzp3PXs5w1 An API key is a unique identifier for each organisation used to perform API calls to Konnect API. |
receiverWalletId required | string The konnect wallet id of the payment receiver. Your Wallet ID is accessible on the dashboard. |
token | string Enum: "TND" "EUR" "USD" The currency of the payment. |
amount required | number The amount to be paid (in Millimes for TND / Centimes for EUR and USD). |
type | string Enum: "immediate" "partial" The type decides if the payment could be paid partially (partial) or should be paid all at once (immediate). |
description | string A description you can add to the payment. It will be seen by the payer in the gateway payment page. |
lifespan | number Duration before the payment expires, in minutes. |
feesIncluded | boolean Whether to ask the client to pay an extra amount to cover Konnect fees. |
firstName | string The first name of the payer |
lastName | string The last name of the payer |
phoneNumber | string The phone number of the payer |
string The email of the payer | |
orderId | string An identifier that you can give to this order. |
webhook | string When the payment is done, Konnect system will send a request to your system on |
silentWebhook | boolean If this is true, Konnect will make the call to the webhook without redirecting the payer to the webhook URL. |
successUrl | string A URL to redirect the user to when the payment succeeds. |
failUrl | string A URL to redirect the user to when the payment fails. |
checkoutForm | boolean Ask the payer to fill a checkout form before payment. |
acceptedPaymentMethods | Array of strings Default: ["wallet","bank_card","e-DINAR"] Items Enum: "wallet" "bank_card" "e-DINAR" "flouci" "wire_transfer" An array containing the payment methods you wish to get paid with |
{- "receiverWalletId": "5f7a209aeb3f76490ac4a3d1",
- "token": "TND",
- "amount": 10000,
- "type": "immediate",
- "description": "payment description",
- "lifespan": 10,
- "feesIncluded": true,
- "firstName": "John",
- "lastName": "Doe",
- "phoneNumber": "22777777",
- "email": "john.doe@gmail.com",
- "orderId": "1234657",
- "silentWebhook": true,
- "checkoutForm": true,
- "acceptedPaymentMethods": [
- "wallet",
- "bank_card",
- "e-DINAR"
]
}
{- "payment_ref": "60889219a388f75c94a943ec"
}
paymentId | string Example: 5e68ed190a43a43998c6eeba The ID of the payment |
{- "payment": {
- "id": "87a4c597cb3c15311bdbd547",
- "receiverWallet": {
- "id": "5ca4c597cb3c15311bdbd6a7",
- "owner": {
- "name": "konnect",
- "phoneNumber": "+21652613031",
- "email": "konnect.sandbox@gmail.com",
- "owner": {
- "email": "Jack@gmail.com",
- "firstName": "Jack",
- "lastName": "Sparrow",
- "phoneNumber": "+2165261303"
}
}, - "participants": [
- "6138cfb9f734a8544049f5ba",
- "6138cfb9f734a85440495872"
], - "type": "Organisation",
- "name": "Jack",
- "phoneNumber": "+21652613031"
}, - "transactions": [
- {
- "_id": "61387bf70c181c5eb44a7fce",
- "receiverWallet": {
- "id": "5ca4c597cb3c15311bdbd6a7",
- "participants": [
- "6138cfb9f734a8544049f5ba",
- "6138cfb9f734a85440495872"
], - "type": "user",
- "name": "Jack",
- "phoneNumber": "+21652613031"
}, - "senderWallet": {
- "id": "5ca4c597cb3c15311bdbd6b1",
- "participants": [ ],
- "type": "user",
- "name": "Sparrow",
- "phoneNumber": "+21652613033"
}, - "token": "TND",
- "amount": 1000,
- "type": "ePayment",
- "status": "success",
- "payment": "613878a7b6cac342ac8f9583",
- "method": "bank_card",
- "extSenderInfo": { }
}
], - "amountDue": 2000,
- "reachedAmount": 1000,
- "amount": 1000,
- "token": "TND",
- "convertedAmount": 15000,
- "exchangeRate": 1,
- "expirationDate": "2020-10-15",
- "shortId": "-PJfSz90m",
- "webhook": "merchant.tech/api/notification_payment",
- "orderId": "123456",
- "type": "immediate",
- "status": "pending",
- "details": "t-shirts payments",
- "acceptedPaymentMethods": [
- "bank_card",
- "wallet",
- "e-DINAR",
- "flouci",
- "wire_transfer"
]
}
}
Once the payment is done, your system will be notified by a call from our server on the webhook. The request you will get is a GET request on your_webhook.com?payment_ref=PAYMENT_ID
For example: https: //www.monsite.tn/module/konnect/webhook?cart_id=6670&payment_ref=5f9498735289e405fc7c18ac
If you are handling this on your server side and you don't wish your client to be redirected to the webhook,
you can change that by using the silentWebhook
attribute.
Once you access the payment ID from the request query params
of the webhook request, you'll be able to use it to fetch the status of the payemnt.
Konnect is also available as a module for Prestashop websites. Please contact us to get access to it. Send us an email at:
Konnect is also available as a plugin for Woocommerce websites.
Download Wordpress plugin: https://wordpress.org/plugins/wc-konnect-gateway
Or you can access it from admin dashboard