<commit_before>---------------------------------
PayPal Website Payments Standard
---------------------------------

`PayPal Website Payments Standard`_ (PWS) is an offsite payment processor. This
method of payment is implemented in merchant as a wrapper on top of 
`django-paypal`_. You need to install the package to be able to use this
payment processor.

For a list of the fields expected, please refer to the PWS and django-paypal
documentation.

After a transaction, PayPal pings the notification URL and all the 
data sent is stored in the `PayPalIPN` model instance that can be 
viewed from the django admin.

Example
-------

In urls.py::

  pay_pal = get_integration("pay_pal")
  urlpatterns += patterns('',
    (r'^paypal-ipn-handler/', include(pay_pal.urls)),
  )

In views.py::

  >>> from billing import get_integration
  >>> pay_pal = get_integration("pay_pal")
  >>> pay_pal.add_fields({
  ...   "business": "<EMAIL>",
  ...   "item_name": "<NAME>",
  ...   "invoice": "UID",<commit_msg>Added information about the settings attribute required for PWS.<commit_after>---------------------------------
PayPal Website Payments Standard
---------------------------------

`PayPal Website Payments Standard`_ (PWS) is an offsite payment processor. This
method of payment is implemented in merchant as a wrapper on top of 
`django-paypal`_. You need to install the package to be able to use this
payment processor.

For a list of the fields and settings attribute expected, please refer to the 
PWS and django-paypal documentation.

After a transaction, PayPal pings the notification URL and all the 
data sent is stored in the `PayPalIPN` model instance that can be 
viewed from the django admin.

Example
-------

In urls.py::

  pay_pal = get_integration("pay_pal")
  urlpatterns += patterns('',
    (r'^paypal-ipn-handler/', include(pay_pal.urls)),
  )

In views.py::

  >>> from billing import get_integration
  >>> pay_pal = get_integration("pay_pal")
  >>> pay_pal.add_fields({
  ...   "business": "<EMAIL>",
  ...   "item_name": "<NAME>",
  ...   "invoice": "UID",
{'fraction_non_alphanumeric': 0.16578567996155694, 'fraction_numerical': 0.0, 'mean_word_length': 2.9431818181818183, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3792042', 'n_tokens_mistral': 599, 'n_tokens_neox': 579, 'n_words': 232}