Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installing the Monnify SDK is very easy and can be completed in a couple of minutes by simply following the steps below:

...


Once you've copied this code into your website, you can start receiving payments via Monnify immediately. 

You can also now receive payments with our new web sdk by simply replacing the “src” value of the above code sample with https://sdk-v2.monnify.com/plugin/monnify.js and leaving the paymentMethods array empty so that it uses all the available payment methods configured for you. After clicking the “Pay With Monnify“ button, you should have an image like this:

...

below is an example of a sample code:

...

languagejson

...

Info

You will need to pass in your own values when initializing the SDK. Your contractCode, and apiKey can be found on your Monnify dashboard

When the transaction is completed, Monnify returns a response object to your onComplete function. 

...


We recommend that you always make a get transaction status call whenever a transaction is completed (or cancelled) before saving the transaction on your database. Monnify will also notify you via your webhook url of the status of any transaction.

...