vendor/store.shopware.com/swagamazonpay/src/Resources/views/storefront/component/swag-amazon-pay/amazon-login-button.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/swag-amazon-pay/amazon-pay-button.html.twig' %}
  2. {% block storefront_component_swag_amazon_pay_amazon_pay_button_container %}
  3.     <div id="swag-amazon-pay-button-container{% if identifier is not null %}-{{ identifier }}{% endif %}"
  4.         class="swag-amazon-pay-button-container{% if identifier is not null %} {{ identifier }}{% endif %}"
  5.         data-amazon-login-button="true"
  6.         data-amazon-login-button-options='{
  7.             "libraryUrl": "{{ page.extensions.SwagAmazonPayButton.libraryUrl }}",
  8.             "loadingElementId": "swag-amazon-pay-loading-indicator{% if identifier is not null %}-{{ identifier }}{% endif %}",
  9.             "errorElementId": "swag-amazon-pay-button-error{% if identifier is not null %}-{{ identifier }}{% endif %}",
  10.             "buttonConfig": {
  11.                 {% block storefront_component_swag_amazon_pay_amazon_pay_button_config %}
  12.                     "merchantId": "{{ page.extensions.SwagAmazonPayButton.merchantId }}",
  13.                     "sandbox": {% if page.extensions.SwagAmazonPayButton.sandbox == 1 %}true{% else %}false{% endif %},
  14.                     "ledgerCurrency": "{{ page.extensions.SwagAmazonPayButton.ledgerCurrency }}",
  15.                     "checkoutLanguage": "{{ page.extensions.SwagAmazonPayButton.checkoutLanguage }}",
  16.                     "placement": "{{ page.extensions.SwagAmazonPayButton.placement }}",
  17.                     "productType": "{{ page.extensions.SwagAmazonPayButton.productType }}",
  18.                     "buttonColor": "{{ page.extensions.SwagAmazonPayButton.buttonColor }}",
  19.                     "signInConfig": {
  20.                         "payloadJSON": "{{ page.extensions.SwagAmazonPayButton.payload | escape('js') }}",
  21.                         "signature": "{{ page.extensions.SwagAmazonPayButton.signature }}",
  22.                         "publicKeyId": "{{ page.extensions.SwagAmazonPayButton.publicKeyId }}"
  23.                     }
  24.                  {% endblock %}
  25.             }}'>
  26.     </div>
  27. {% endblock %}