I'm looking at implementing an official omnipay gateway, is there a prefered path in perch where gateway packages should be placed, in our case omnipay/multisafepay.
There's perch/addons/apps/perch_shop/gateways but all omnipay packages a listed in perch/addons/apps/perch_shop/lib/vendor/omnipay
There's not as yet - but's it's fairly basic.
Define and include a new gateway class that extends
PerchShopGateway_default
. For an example gateway called "Mango" you'd use:You'd then add any of the methods from
PerchShopGateway_default
that you need to customise. A good example might be the WorldPay implementation.Thanks,
I'm looking at implementing an official omnipay gateway, is there a prefered path in perch where gateway packages should be placed, in our case omnipay/multisafepay.
There's perch/addons/apps/perch_shop/gateways but all omnipay packages a listed in perch/addons/apps/perch_shop/lib/vendor/omnipay
You shouldn't make any changes inside
apps/perch_shop
. The better route would be to implement your code (including any dependancies) as their own app.