Please find complete documentation from https://docs.transaction-monitor.io/.
Blu Penguin Merchant API v1 (v1)
A UUIDv4 based ID specified by you, that uniquely identifies the deposit.
The URL to which the user will be redirected after completion of the operation.
Short description for the transaction. Depending on the specific MMO performing the transaction this message may be visible to the customer in the SMS receipt or within their transaction history.
Must be between 4 and 22 alphanumeric characters.
If specified, the amount will be displayed to the customer as the payment amount. For example, when paying for specific goods or services.
If not specified, the customer will have to specify the amount they wish to pay. For example, when depositing money into their eWallet.
Amount must follow below requirements or the request will be rejected:
- Between zero and two decimal places can be supplied, depending on what the specific MMO supports. Learn about all MMO supported decimal places.
- The minimum and maximum amounts depend on the limits of the specific MMO. You can find them from the Active Configuration endpoint.
- Leading zeroes are not permitted except where the value is less than 1. For any value less than one, one and only one leading zero must be supplied.
- Trailing zeroes are permitted.
Valid examples: 5, 5.0, 5.00, 5.5, 5.55, 5555555, 0.5
Not valid examples: 5., 5.555, 5555555555555555555, .5, -5.5, 00.5, 00.00, 00001.32
If specified, this phone number will be used to collect the deposit. If not specified, the customer paying can specify the phone number that they want to pay from.
The format is described in Wikipedia.
MSISDN validation has following rules:
- Only digits without whitespaces or any other separators or prefixes like '+'.
- Should not start with zero.
- Country code is mandatory.
- Should not exceed or be less than the valid length of specified country.
Valid examples for Zambia: 260763456789
Not valid examples for Zambia: +260763456789, 260 763 456789, 260-7634-56789, 0260763456789, 2607634567, 260763456789543, 999558708954, 37255870895
The language in which the Payment Page will be presented to the customer. If the user has explicitly changed their languages preferences, their selection will override this parameter.
If specifified, allows payment from phone numbers only from a specific country. If not specified, the customer can select any country that is configured for your account in Blu Penguin.
You can use the active configuration endpoint to verify which counrties and MMOs have been configured for your account.
Format must be the ISO 3166-1 alpha-3, three character country code in upper case. Read more from Wikipedia.
Optional text which will be displayed to the customer on the payment page to specify what they are paying for.
A list of metadata that you can attach to the payment for providing additional context about the payment. For example, adding orderId to indicate for which order this payment was for or customerId to know which customer this payment pertains to.
Metadata will not be visible to the customer that is party to this payment. It will be visible in the Blu Penguin Dashboard on the payment details page and in your financial statements as a JSON object to support automated reconciliation. It is also possible to search for recent payments in the Blu Penguin Dashboard using global search based on the values of metadata.
Up to 10 metadata fields can be attached to a payment.
- Mock serverhttps://docs.transaction-monitor.io/_mock/blupenguin_openapi_v1/v1/widget/sessions
- Blu Penguin Merchant API sandboxhttps://api.sandbox.transaction-monitor.io/v1/widget/sessions
- Blu Penguin Merchant API productionhttps://api.transaction-monitor.io/v1/widget/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.transaction-monitor.io/_mock/blupenguin_openapi_v1/v1/widget/sessions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"depositId": "<INSERT_UUID_FOR_DEPOSIT>",
"returnUrl": "https://merchant.com/paymentProcessed",
"statementDescription": "Note of 4 to 22 chars",
"amount": "15",
"msisdn": "260763456789",
"language": "EN",
"country": "ZMB",
"reason": "Ticket to festival",
"metadata": [
{
"fieldName": "orderId",
"fieldValue": "ORD-123456789"
},
{
"fieldName": "customerId",
"fieldValue": "customer@email.com",
"isPII": true
}
]
}'Payment Page session is created successfully
The unique URL of the payment page for this specific payment session. Customer has to be forwarded to this URL where they can complete the payment. The session is valid for 15 minutes for the customer to complete the payment.
Please note! The URL is valid for 5 minutes.
{ "redirectUrl": "https://paywith.transaction-monitor.io/?token=example-token" }