From 9f8df642896ab3f0a30d57e76fc72f544b2003fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 26 Jan 2021 17:21:12 +0100 Subject: [PATCH] - Only show save card component if token billing isn't always - Only show "Refunded" if amount is > 0 - Stripe: Grab only :checked checkbox --- .../js/clients/payments/stripe-credit-card.js | 2 +- public/mix-manifest.json | 2 +- .../js/clients/payments/stripe-credit-card.js | 2 +- .../gateways/includes/save_card.blade.php | 21 ++++++++++++++----- .../ninja2020/layout/payments.blade.php | 2 +- .../portal/ninja2020/payments/show.blade.php | 16 +++++++------- 6 files changed, 29 insertions(+), 16 deletions(-) diff --git a/public/js/clients/payments/stripe-credit-card.js b/public/js/clients/payments/stripe-credit-card.js index 0fd50b3d74..c5ced87f1c 100755 --- a/public/js/clients/payments/stripe-credit-card.js +++ b/public/js/clients/payments/stripe-credit-card.js @@ -1,2 +1,2 @@ /*! For license information please see stripe-credit-card.js.LICENSE.txt */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=11)}({11:function(e,t,n){e.exports=n("uALE")},uALE:function(e,t){var n,r,o;function a(e,t){for(var n=0;n +@if($gateway->company_gateway->token_billing !== 'always') +
{{ ctrans('texts.save_payment_method_details') }}
-@endunless +@else + +@endif diff --git a/resources/views/portal/ninja2020/layout/payments.blade.php b/resources/views/portal/ninja2020/layout/payments.blade.php index 7266b7992a..ab3e8d4d40 100644 --- a/resources/views/portal/ninja2020/layout/payments.blade.php +++ b/resources/views/portal/ninja2020/layout/payments.blade.php @@ -48,7 +48,7 @@ document .querySelector('div[data-ref="gateway-container"]') - .scrollIntoView({ behavior: "smooth" }); + .scrollIntoView({behavior: "smooth"}); }); @endpush diff --git a/resources/views/portal/ninja2020/payments/show.blade.php b/resources/views/portal/ninja2020/payments/show.blade.php index c6f27e1024..34967fa740 100644 --- a/resources/views/portal/ninja2020/payments/show.blade.php +++ b/resources/views/portal/ninja2020/payments/show.blade.php @@ -70,14 +70,16 @@ -
-
- {{ ctrans('texts.refunded') }} -
-
- {{ \App\Utils\Number::formatMoney($payment->refunded, $payment->client) }} + @if($payment->refunded > 0) +
+
+ {{ ctrans('texts.refunded') }} +
+
+ {{ \App\Utils\Number::formatMoney($payment->refunded, $payment->client) }} +
-
+ @endif @endif