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:
- cloned omnipay repository using composer
- 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
Post a Comment