Pocket App Affords you the two channels for checking out(payment checkout).

Pay via Pocket USSD(Super Fast)

Pay via Bank Transfer(Super Fast)
Make Payment Snippet
<h1>Make Payment Snippet</h1>
<button onclick="payWithPatronize('abeg')">Pay with Abeg</button>
<button onclick="payWithPatronize('bank')">Pay with Bank Transfer</button>
<script src="https://patronize-pay-sdk.netlify.app/v1/pay.js"></script>
<script>
function payWithPatronize(mode) {
const patronize = new Patronize({
key: "pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
mode:"bank",
amount: 10000,
phone: "07036940769",
narration: "Buy my device",
enable_direct_debit: false,
meta: {
name: "uncooloj",
},
onCancel: (response) => {
console.log(response);
alert("Patronize pay closed");
},
onSuccessful: (response) => {
console.log(response);
alert("Patronize pay successful");
},
onFailed: (response) => {
console.log(response);
alert("Patronize pay failed");
},
});
patronize.makePayment();
}
</script>
| Field | Mandatory | Type | Description |
|---|---|---|---|
| key | Yes | String | This is the business private key |
| mode | Yes | String | This is the channel of payment abeg or bank |
| amount | Yes | Number | Amount (in the lowest currency value - kobo) you are debiting customer. |
| phone | Yes | String | Phone number of your customer. |
| narration | Yes | String | The description of the transfer. |
| enable_direct_debit | Yes | Boolean | defaults to false |
| meta | Yes | Object | extra information on transfer |
