Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from heidelpay/develop
Browse files Browse the repository at this point in the history
adding new Template Blocks
  • Loading branch information
Sascha authored Nov 6, 2019
2 parents c710923 + 3971499 commit 2b712b5
Showing 1 changed file with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,32 @@
<input type="hidden" id="heidelpayResourceId" name="heidelpayResourceId" form="confirmOrderForm">
{% endblock %}

<div class="heidelpay-card"
id="heidelpay-card"
data-heidelpay-base="true"
data-heidelpay-base-options='{
{% block heidelpay_checkout_confirm_frame_card %}
<div class="heidelpay-card"
id="heidelpay-card"
data-heidelpay-base="true"
data-heidelpay-base-options='{
"publicKey": "{{ shopware.config.HeidelPayment.config.publicKey }}",
"locale": "{{ app.request.locale }}",
"errorShouldNotBeEmpty": "{{ "error.VIOLATION::IS_BLANK_ERROR" | trans }}"
}'>
<div class="card-body">
<div class="card-title">
{{ context.paymentMethod.translated.name }}
</div>

<div class="heidelpay-frame">
{% sw_include context.paymentMethod.customFields.heidelpay_frame ignore missing %}
<div class="card-body">
{% block heidelpay_checkout_confirm_frame_card_body %}
{% block heidelpay_checkout_confirm_frame_card_body_title %}
<div class="card-title">
{{ context.paymentMethod.translated.name }}
</div>
{% endblock %}

{% block heidelpay_checkout_confirm_frame_card_body_frame %}
<div class="heidelpay-frame">
{% sw_include context.paymentMethod.customFields.heidelpay_frame ignore missing %}
</div>
{% endblock %}
{% endblock %}
</div>
</div>
</div>
{% endblock %}
{% endblock %}
{% endif %}

Expand Down

0 comments on commit 2b712b5

Please sign in to comment.