Categories
PHP

SecureNet PHP SDK

Here you can find a working API based on this documentation and dozens of exchanged emails with the technical integration team at securenet.

WARNING

  • SecureNet only operates in US
  • You need a US IP address to test (yes…)
  • Your server needs to have a US IP
  • Your customer needs to be buying from a US IP too.. if not payos.js will not load crazy but true :O see here
  • Takes 2 days to get the credentials
  • You will probably need to be PCI compliant.
  • You will need some testing cards, and they will send you one home.

Issues

All this was found while developing the PHP library and why I have developed it.

  • Documentation is not updated, misses to mention you need a developer_id, Ip restrictions for example.
  • It mentions all the time PHP integration but:
  • There’s no PHP SDK, that’s why I have done one….
  • I could only develop/test using a VPN with US IP.
  • The one you can download is outdated and can not be used…
  • The production End Points are different than the testing one! AWESOME!

I have done this integration for Open Classifieds and Yclas. Worst payment gateway integration done in many years. Not sure what they are thinking having companies like Stripe out there…

How Works

Well amazingly seems to work at least in the demo….

You will need from SecureNet:

  1. Testing cards (they will send you a physical testing card :O )
  2. Securenet ID
  3. Secure Key
  4. Developer ID
  5. API Endpoint

Good luck getting all.

Then after check this code:

Please change the API endpoint with the one provided to you from securenet once they send it to you.