Code Analysis: Visma Pay Payment Gateway 1.0.1

Function Rating Maintainability Complexity Lines of code
WC_Gateway_Visma_Pay::process_payment()
D
15
52 286
init_visma_pay_gateway()
D
8
2 879
WC_Gateway_Visma_Pay::check_visma_pay_response()
D
27
41 117
WC_Gateway_Visma_Pay::payment_fields()
D
31 34 93
WC_Gateway_Visma_Pay::init_form_fields()
A
32 2 135
WC_Gateway_Visma_Pay::visma_pay_url()
A
48 8 35
WC_Gateway_Visma_Pay::visma_pay_translate_error_code()
A
54 8 21
Visma\VismaPay::checkReturn()
A
55 8 18
WC_Gateway_Visma_Pay::visma_pay_save_img()
S
51 7 26
WC_Gateway_Visma_Pay::visma_pay_settle_payment()
S
47 6 36
Visma\VismaPay::makeChargeRequest()
S
54 6 20
WC_Gateway_Visma_Pay::process_settlement()
S
49 5 32
WC_Gateway_Visma_Pay::__construct()
S
48 3 31
WC_Gateway_Visma_Pay::visma_pay_translate_verified_code()
S
61 4 13
Visma\VismaPay::makeRequest()
S
62 4 11
WC_Gateway_Visma_Pay::get_order_by_id_and_order_number()
S
62 3 12
Visma\VismaPayWPConnector::request()
S
57 2 17
Visma\VismaPay::__construct()
S
68 2 7
WC_Gateway_Visma_Pay::payment_scripts()
S
68 2 6
woocommerce_add_WC_Gateway_Visma_Pay()
S
77 1 4
Visma\VismaPay::checkStatusWithToken()
S
70 1 6
Visma\VismaPay::addCharge()
S
81 1 3
WC_Gateway_Visma_Pay::sanitize_visma_pay_order_number()
S
79 1 3
Visma\VismaPay::settlePayment()
S
70 1 6
Visma\VismaPay::checkStatusWithOrderNumber()
S
70 1 6
Visma\VismaPay::addPaymentMethod()
S
81 1 3
Visma\VismaPay::addCustomer()
S
81 1 3
Visma\VismaPay::calcAuthcode()
S
78 1 3
Visma\VismaPay::addProduct()
S
80 1 3
Visma\VismaPay::chargeWithCardToken()
S
80 1 3
Visma\VismaPay::getMerchantPaymentMethods()
S
68 1 7
Visma\VismaPay::cancelPayment()
S
70 1 6
WC_Gateway_Visma_Pay::is_valid_currency()
S
79 1 3
WC_Gateway_Visma_Pay::visma_pay_die()
S
68 1 7
Visma\VismaPay::createCharge()
S
80 1 3
Visma\VismaPay::deleteCardToken()
S
70 1 6
Visma\VismaPay::getCardToken()
S
70 1 6