amazon_gateway/amazon.js
File amazon.js
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*global amazon:true, OffAmazonPayments:true*/
( function ( $, mw ) {
var clientId = mw.config.get( 'wgAmazonGatewayClientID' ),
sellerId = mw.config.get( 'wgAmazonGatewaySellerID' ),
sandbox = mw.config.get( 'wgAmazonGatewaySandbox' ),
Function submitPayment
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function submitPayment() {
if ( !mw.donationInterface.validation.validateAmount() ) {
return;
}
if ( !cardSelected ) {
Function createWalletWidget
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createWalletWidget() {
var params = {
sellerId: sellerId,
onReady: function ( billingAgreement ) {
if ( !cardSelected ) {