-
{{ ctrans('texts.add_credit_card')}}
@yield('credit_card')
diff --git a/resources/views/portal/default/gateways/stripe/create_customer.blade.php b/resources/views/portal/default/gateways/stripe/create_customer.blade.php
index 2d7b12528e85..7584b82dfd74 100644
--- a/resources/views/portal/default/gateways/stripe/create_customer.blade.php
+++ b/resources/views/portal/default/gateways/stripe/create_customer.blade.php
@@ -6,12 +6,23 @@
+
+
+
+
+
+
+
+
+
+
@endsection
@@ -40,11 +51,28 @@
).then(function(result) {
if (result.error) {
// Display error.message in your UI.
+ console.log(result.error);
+ console.log(result.error.message);
+
+ $("#card-errors").empty();
+ $("#card-errors").append("
");
+
} else {
// The setup has succeeded. Display a success message.
+ console.log(result);
}
});
});
+
+ $("#card-button").attr("disabled", true);
+
+ $('#cardholder-name').on('input',function(e){
+ if($("#cardholder-name").val().length >=1)
+ $("#card-button").removeAttr("disabled");
+ else
+ $("#card-button").attr("disabled", true);
+ });
+
@endpush