Why Is There A New Integration?

Our new PayPal integration replaces our existing integrations. Containing many new features including smart buttons, automated dispute responses, stored payment methods and more, this integration requires some small changes to existing templates.

Checkout.html

Smart Buttons

The new PayPal integration includes support for PayPal Smart Buttons, allowing users to pay not just using their PayPal account, but using methods that are relevant to them such as Venmo, iDeal and more, all through PayPal directly. In order to do this, a change is required to existing templates to support inserting these Smart Buttons.

In checkout.html, your existing code to render the 'Checkout' / 'Claim' buttons, highlighted below:

Must be replaced with a new, simple include:

{% include "checkout/buttons.html" %}

This include contains the rendering for both buttons, as well as the new changes required for PayPal Smart Buttons

Stored Payment Methods

If you wish to support stored payment methods, an additional include must be added.

In checkout.html, after the code to render the 'Terms and Conditions' checkbox, as indicated below:

A new include must be added:

{% include "checkout/tokenize.html" %}

Subscribe.html

Smart Buttons

Similar to checkout.html, in subscribe.html, your existing code to render the 'Subscribe' button, highlighted below:

Must be replaced with a new, simple include:

{% include "subscribe/buttons.html" %}

This include contains the rendering for both buttons, as well as the new changes required for PayPal Smart Buttons

Stored Payment Methods

In subscribe.html, after the code to render the 'Terms and Conditions' checkbox, as indicated below:

A new include must be added:

{% include "subscribe/tokenize.html" %}
Did this answer your question?