Skip to content

Commit

Permalink
Merge pull request #137 from QuickPay/add_vmp_epayment
Browse files Browse the repository at this point in the history
Add vmp epayment
  • Loading branch information
FrankHald authored Mar 12, 2024
2 parents 51c5d4a + 7e51298 commit 501fd93
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/form/vmp_epayment.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-push-8 col-xs-6 col-xs-push-3">
<img src="{{ model.image_path }}" alt="vmp-epayment" title="Vipps MobilePay" style="width:100%">
</div>
<div class="col-sm-8 col-sm-pull-4 col-xs-12">
<p>{% t When you click the button below, the Vipps-MobilePay window will open %}</p>
<p>{% t When finished, you will be redirected back to your receipt. %}</p>
<a class="btn btn-info {% unless !model.error %}autoclick{% endunless %}" href="{{ model.redirect_url }}">{% t Proceed to payment %}</a>
</div>
</div>
</div>
6 changes: 6 additions & 0 deletions templates/payment_methods_list.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<a href="{% if method.payment_request_api_method? %}#{% else %}{{ model.session_id }}/payment-method/{{ method.name }}{% endif %}" class="btn btn-default">
{% if method.name == "apple-pay" %}
<div class="apple-pay-btn" title="{{ method.nice_name }}"></div>
{% elsif method.name == "vmp-epayment" %}
{% if model.currency == "NOK" %}
<img src="{{ method.base_image_path }}/vmp-vipps.svg" alt="VMP Vipps" title="VMP Vipps"/>
{% else %}
<img src="{{ method.base_image_path }}/vmp-mobilepay.svg" alt="VMP MobilePay" title="VMP MobilePay"/>
{% endif %}
{% else %}
<img src="{{ method.image_path }}" alt="{{ method.nice_name }}" title="{{ method.nice_name }}"/>
{% endif %}
Expand Down

0 comments on commit 501fd93

Please sign in to comment.