Skip to content

Commit

Permalink
Merge pull request #136 from QuickPay/PaypalButton
Browse files Browse the repository at this point in the history
Changes to PayPal Button
  • Loading branch information
mykunzer authored Apr 2, 2024
2 parents 501fd93 + 73f71f9 commit 87e272a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.0
2.4.3
11 changes: 11 additions & 0 deletions stylesheets/paymentwindow.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 15 additions & 11 deletions templates/payment_methods_list.liquid
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<div class="col-sm-4 col-xs-6 payment-method payment-method-{{ method.name }}">
<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"/>
{% if method.name == "paypal-payments" %}
<div id="paypal-button-container" title="{{ method.nice_name }}" class="btn btn-default"></div>
{% else %}
<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.base_image_path }}/vmp-mobilepay.svg" alt="VMP MobilePay" title="VMP MobilePay"/>
<img src="{{ method.image_path }}" alt="{{ method.nice_name }}" title="{{ method.nice_name }}"/>
{% endif %}
{% else %}
<img src="{{ method.image_path }}" alt="{{ method.nice_name }}" title="{{ method.nice_name }}"/>
{% endif %}
</a>
</a>
{% endif %}
</div>

0 comments on commit 87e272a

Please sign in to comment.