Skip to content

Commit

Permalink
Updated docs on form submit button customisation. spookylukey#258 spo…
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Jul 17, 2022
1 parent 5a8d9a7 commit b073ffd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/standard/ipn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ Using PayPal Standard IPN
by subclassing ``PayPalPaymentsForm`` and overriding the ``get_image``
method.

**Submit button customisation**
The submit button used by the form is the standard PayPal payment button, but it's possible to customise it extending the form:

.. code-block:: python
from paypal.standard.forms import PayPalPaymentsForm
class CustomPayPalPaymentsForm(PayPalPaymentsForm):
def get_html_submit_element(self):
return """<button type="submit">Continue on PayPal website</button>"""
4. When someone uses this button to buy something PayPal makes a HTTP POST to
your "notify_url". PayPal calls this Instant Payment Notification (IPN).
The view ``paypal.standard.ipn.views.ipn`` handles IPN processing. To set the
Expand Down

0 comments on commit b073ffd

Please sign in to comment.