*cringe* Nigerian payment processors using HTML forms an API

What’s with Nigerian payment processors using HTML POSTed form as an API??

Is building an API with various endpoints that difficult to do?

First, i saw the shit in CashEnvoy, Paga and now SimplePay

https://simplepay4u.com/developer.php#SimplepayApi

They really should look at Stripe, paypal and 2checkout to learn how to build a payment gateway.

I cringe seeing these shits.

Needless to say Simplepay website is just a bunch of PHP files. what happened to rewriting URLs that are SEO friendly?

Just to be clear, your issue is that they ask for devs to post their data using an HTML form?

My sentiment exactly.

But… I’m pretty sure every payment processor does this…? Including the ones you listed above?

Since they are using PHP, using a framework such as Slim or Silex to build their API would make lots of sense without having force developers to use obnoxious HTML just to send a dead-simple POST request.

You can “POST” data without explicitly using an HTML form, though. :person_tipping_hand:t5:

I wanna delete this thread. Where is the delete button?

@collizo4sky Its no doubt that all Nigeria payment service has such a frustrating APIs. But I feel this is due to security reason which I think our payment processors in Nigeria are not ready to invest much on security and fraud protection. No doubt Stripe is good, and our payment processors are not making effort to be better rather they’re killing small businesses.
I’ll be glad if you’ll come and change this for us wink

LOOOL

my friend collect ela! you can’t hide from it.

hahaha… funny

They all use Interswitch and Interswitch does not offer REST APIs you can send card details for processing. (At last check). To pay, the user needs to be redirected to the Interswitch payment page. The processor needs to do this, i.e redirect the user to Interswitch, that’s why the HTML form comes in. The flow is something like this:
Form (with hidden payment details) => Processor page => Interswitch

So if you post via other means, Curl for example, you don’t get redirected to the Processor and then Interswitch. The form ensures this by not just posting the details but redirecting you to the payment page (via the action attribute).

The thread is not yours to delete. It is now as much the property of the people who have contributed to it as much as you who created it.

1 Like

The reason is the same reason (excuse) for everything payment in Nigeria, CBN regulations. You can’t accept user card details on your site, heck, I will not enter my card details on any site, I’d rather use PayPal.

The only logical way will be to send payment details to the payment processor and since using GET will make the URL messy and stick to user browser history, POST is a better option to send payment details.

Most of the named processors allow you to use REST when validating their response. So it’s not like they don’t know what’s easier to work with.

what happened to rewriting URLs that are SEO friendly?

Why? Do they need those URLs to appear on search results? URL re-writing is somewhat overrated.

2 Likes