Pay With Pocket(formally Abeg)

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

465

Pay via Pocket USSD(Super Fast)

469

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>
FieldMandatoryTypeDescription
key YesStringThis is the business private key
mode YesStringThis is the channel of payment abeg or bank
amount YesNumberAmount (in the lowest currency value - kobo) you are debiting customer.
phone YesStringPhone number of your customer.
narration YesStringThe description of the transfer.
enable_direct_debit YesBooleandefaults to false
meta YesObjectextra information on transfer