Chris Moffitt avatar Chris Moffitt committed 85e48d5

Minor doc formatting changes.

Comments (0)

Files changed (1)

docs/custom-payment.txt

  - Takes order data and formats it in the appropriate manner (``prepareData``)
  - Sends the data to the processing server/url (``authorize_payment``, ``capture_payment``, ``capture_authorized_payment``) and returns the results.
 
-Of them, only ``capture_payment`` is required.  If the processor can both authorize and process, then you need to add a function "can_authorize", which returns True, and implement the other two methods.  See the ``dummy`` module for an example.
+Of them, only ``capture_payment`` is required.  If the processor can both authorize and process, then you need to add a function ``can_authorize``, which returns True, and implement the other two methods.  See the ``dummy`` module for an example.
 
 Optionally, the processor can include include test code so that it is easy to verify from
 the command line.
         ordering=102)
 
 .. Note:: The key of the ``ConfigurationGroup`` must be the module name, upper-cased.
+
 For example, if your custom payment module was located in ``mypaymentmodules.mynewprocessor``,
-the ``ConfigurationGroup`` should be given the key 'PAYMENT_MYNEWPROCESSOR'.
+the ``ConfigurationGroup`` should be given the key ``PAYMENT_MYNEWPROCESSOR``.
 The reason for this is that the ``active_gateways()`` function in ``payment/__init__.py`` attempts 
-to automatically determine these keys by appending the upper-cased module name to 'PAYMENT_'.
+to automatically determine these keys by appending the upper-cased module name to ``PAYMENT_``.
 
 Now register the settings you need::
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.