Display Button
The PayPal Buttons Field
returns a PayPal Button element with all your button info. You can display your PayPal Button using the displayButton()
method
{% set paypal = entry.paypal.first() %}
{{ paypal.sku }}
{{ paypal.name }}
{{ paypal.currency }}
{{ paypal.getBasePrice() }}
{# Price with currency #}
{{ order.getBasePrice()|currency(paypal.currency) }}
{# DISPLAY PAYPAL BUTTON #}
{{ paypal.displayButton() }}