Omnipay how to add new gateway -


does know how add new payment gateway omnipay?

i read blog https://groups.google.com/forum/#!topic/omnipay/j7oeqqsb95a

i followed following steps:

  1. cloned omnipay repository using composer
  2. inside vendor/omnipay/ directory, added new directory layout per stripe example

now when trying include gateway, see following error:

scream: error suppression ignored ( ! ) fatal error: class '\omnipay\mygateway\gateway' not found in  c:\wamp\www\root\omnipay\vendor\omnipay\common\src\omnipay\common\gatewayfactory.php on line 79 

you don't need change inside vendor/ directory.

just create class \omnipay\mygateway\gateway in regular src/lib directory, , make sure can autoloaded composer. can use omnipay\omnipay::create('mygateway') create instance of class (or call new \omnipay\mygateway\gateway()).


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -