On Thu, Jun 12, 2014 at 5:03 PM, wang Nooper <
nooper...@gmail.com> wrote:
> what I mean is I need to write a new gateway to extend the gateway method ,
> but I check the document
>
http://django-merchant.readthedocs.org/en/latest/custom_gateway.html
> Create a new gateway file under the billing.gateways module which should
> follow this naming convention.
> that means is that I need to patch the code in the merchant , I just want to
> install merchant as third party. apps.
The doc is for those people who want to contribute a new gateway to
merchant. If you don't wish to contribute your changes back, please
follow the procedure below:
Install merchant like you would normally install any python package
(pip or easy_install). In any of your own app in your django project,
add a gateways module and your custom gateway (following the name
convention) and it should get picked up automatically. No need to
patch merchant.
Here's some code to show the logic:
https://github.com/agiliq/merchant/blob/master/billing/gateway.py#L115