Pay attention to the description of the parameters payment_url_success_id / payment_url_fail_id/ payment_url_pending_id and success_url / fail_url / pending_url.
To use payment_url_success_id / payment_url_fail_id / payment_url_pending_id you need to send the URLs to Paykassma support and use the received IDs in the parameters.
To use success_url / fail_url / pending_url you must use hashing URLs ( For more details on hashing click here ).
For the description of all the plug-in parameters click here.
API integration
Creating payment
URL: https://api.{server_URL}/api/v1/transaction/create/baciban_ml?secret={pluginapi_secret}
At this stage we first accept a request for input through the payment system and in response we will provide the wallet details to which the user should transfer the payment. After the payment is made you will need to send a request to activate the transaction.
Request method:
POST
Format:
JSON
Parameters:
Name | Type | Required | Max Length | Description |
| currency | string | yes | 3 | Currency code. |
label | string | yes | 190 | The unique identifier (ID) of the user who makes the payment. |
{
"currency": "CRC",
"label": "eligendi"
}
{
"status": "ok",
"params": {
"Account number": "81351811",
"is_check_amount": null
}
}
{
"status": "fail",
"message": "MESSAGE"
}
Activation request
URL: http://api.{server_URL}/api/v1/possible-transaction?secret={pluginapi_secret}
Request method:
POST
Format:
form-data
Parameters:
Name | Type | Required | Max Length | Description |
| currency_code | string | yes | 3 | Currency code (CRC). |
wallet_type | string | yes | 190 | baciban_ml |
| label | string | yes | 190 | The unique identifier (ID) of the user who makes the payment. |
| key1 | string | yes | 10 | Transaction number received from the user. Length from 6 to 10 digits. |
| screenshot | file | yes | Screenshot of the payment from the user. | |
| amount | int | yes | 256 | Payment amount. |
| custom_transaction_id | string | yes | 190 | The identifier of the transaction in the Client's system. Must be unique. |
{
"status": "success",
"message": "",
"code": 20000,
"data": [],
"paginate": {
"offset": 0,
"total": 1,
"limit": 1
}
}
{
"status": "fail",
"message": "MESSAGE"
}
Deposit postback
For the general documentation on post backs click here.
Example of a deposit postback for a BAC IBAN Manual
The Paykassma server is waiting for a response in json {"status": "ok"} response code 200, otherwise, when receiving a different response, Paykassma will forward the postback with a certain frequency.
Repeated postbacks must also be answered with {"status":"ok"} response code 200.
Withdrawals for users
Payments to users are made by using Sinpe Movil method (for more details on Sinpe Movil method click here).