app/assets/javascripts/stripe_payment.js
Function handleCreatedPaymentIntent
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var handleCreatedPaymentIntent = function(response) {
var payment = response.stripe_payment_intent;
if (payment.error) {
showError(ST.t('error_messages.stripe.generic_error'));
} else if (payment.requires_action) {
Function initIntent
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var initIntent = function(options){
stripe = Stripe(options.publishable_key);
var card = createCard();
var form = $("#transaction-form");