Code Analysis: Airwallex Online Payments Gateway 1.2.11

Function Rating Maintainability Complexity Lines of code
Airwallex\AbstractClient::createPaymentIntent()
D
27
31 138
Airwallex\Services\WebhookService::process()
B
32 19 100
Airwallex\Main::addJsLegacy()
B
29
10 173
AirwallexController::paymentConfirmation()
A
36 12 81
AirwallexController::getOrderAndPaymentIntentForConfirmation()
A
48 10 33
Airwallex\Gateways\Main::get_form_fields()
A
38 7 74
AirwallexController::asyncIntent()
A
41 8 56
Airwallex\Gateways\Main::getPaymentLogos()
A
48 8 32
Airwallex\Gateways\Card::getCardLogos()
A
53 8 22
Airwallex\LoggingClient::getClientPlatform()
A
57 8 16
Airwallex\Gateways\Card::get_form_fields()
S
41 5 60
Airwallex\Main::addGlobalSettings()
S
35 2 105
AirwallexController::dropInPayment()
S
46 6 37
Airwallex\Gateways\Main::getPaymentMethods()
S
53 7 22
Airwallex\Main::_handleStatusChangeForCard()
S
54 7 21
Airwallex\AbstractClient::getToken()
S
58 7 16
Airwallex\Gateways\Main::generate_methods_html()
S
43 4 59
Airwallex\Client\HttpClient::call()
S
50 6 27
Airwallex\Services\OrderService::checkPendingTransactions()
S
51 6 25
Airwallex\Services\OrderService::setPaymentSuccess()
S
51 6 25
Airwallex\Client\HttpClient::httpSend()
S
47 5 38
Airwallex\Gateways\Main::__construct()
S
51 6 23
Airwallex\Main::updateMerchantCountry()
S
56 6 19
Airwallex\AbstractClient::doAuth()
S
55 6 18
Airwallex\LoggingClient::log()
S
47 4 38
Airwallex\Services\Util::getLocale()
S
56 5 17
AirwallexController::weChatPayment()
S
48 4 31
AirwallexController::cardPayment()
S
48 4 31
AirwallexController::getRequestHeaders()
S
58 5 15
Airwallex\AbstractClient::createRefund()
S
50 4 30
Airwallex\Struct\AbstractBase::toArray()
S
59 5 14
Airwallex\Gateways\Card::__construct()
S
57 5 14
Airwallex\Gateways\Main::getStatus()
S
61 5 12
Airwallex\Gateways\Main::generate_logos_html()
S
45 2 50
Airwallex\Gateways\Main::generate_radio_html()
S
45 2 49
Airwallex\Gateways\Card::capture()
S
56 4 18
Airwallex\Main::registerCron()
S
59 4 15
Airwallex\Services\WebhookService::getOrderIdForPaymentIntent()
S
61 4 13
Airwallex\Gateways\Main::getActivePaymentLogosArray()
S
60 4 12
Airwallex\AbstractClient::createCustomer()
S
53 3 24
Airwallex\Gateways\Card::process_refund()
S
52 3 23
Airwallex\Gateways\CardSubscriptions::do_subscription_payment()
S
52 3 23
Airwallex\AbstractClient::confirmPaymentIntent()
S
53 3 23
Airwallex\Gateways\Main::process_refund()
S
52 3 23
Airwallex\Gateways\Main::do_subscription_payment()
S
52 3 23
Airwallex\AbstractClient::getCustomer()
S
54 3 23
Airwallex\Gateways\WeChat::process_refund()
S
52 3 23
Airwallex\Services\OrderService::getOrderByPaymentIntentId()
S
55 3 21
Airwallex\Services\OrderService::getRefundByAmountAndTime()
S
49 2 35
AirwallexController::handleStatusForConfirmation()
S
55 3 20
airwallex_init()
S
56 3 18
Airwallex\AbstractClient::getPaymentIntent()
S
56 3 18
Airwallex\AbstractClient::createCustomerClientSecret()
S
56 3 18
Airwallex\Services\OrderService::containsSubscription()
S
77 4 3
Airwallex\Gateways\WeChat::__construct()
S
58 3 14
Airwallex\Gateways\Card::get_icon()
S
61 3 12
Airwallex\Main::getMerchantCountry()
S
64 3 11
Airwallex\AbstractClient::capture()
S
54 2 21
Airwallex\AbstractClient::getPaymentMethodTypes()
S
55 2 21
Airwallex\Services\OrderService::getRefundIdByAirwallexRefundId()
S
57 2 19
AirwallexController::webhook()
S
56 2 18
Airwallex\Main::registerEvents()
S
54 2 18
Airwallex\Gateways\CardSubscriptions::__construct()
S
57 2 16
Airwallex\AbstractClient::getAccount()
S
59 2 16
Airwallex\Main::modifyRequestsForLogging()
S
71 3 5
Airwallex\Struct\AbstractBase::setFromArray()
S
63 3 10
Airwallex\Main::updateMerchantCountryAfterSave()
S
70 3 6
Airwallex\Gateways\CardSubscriptions::subscription_payment_information()
S
68 3 7
Airwallex\Gateways\Main::get_icon()
S
65 3 8
Airwallex\Gateways\Main::subscription_payment_information()
S
68 3 7
Airwallex\Main::addPaymentGateways()
S
64 3 10
Airwallex\Services\OrderService::getAirwallexCustomerId()
S
65 3 10
Airwallex\Gateways\WeChat::get_form_fields()
S
52 1 28
Airwallex\Services\OrderService::getOrderByAirwallexRefundId()
S
61 2 13
Airwallex\Gateways\Card::process_payment()
S
61 2 12
Airwallex\Main::registerOrderStatus()
S
54 1 23
Airwallex\Services\WebhookService::verifySignature()
S
64 2 9
Airwallex\Struct\AbstractBase::__construct()
S
72 2 6
Airwallex\AbstractClient::getPciUrl()
S
78 2 3
Airwallex\AbstractClient::getGeneralUrl()
S
78 2 3
Airwallex\AbstractClient::getLogUrl()
S
78 2 3
Airwallex\Gateways\Card::payment_fields()
S
67 2 8
Airwallex\Gateways\Card::get_async_intent_url()
S
70 2 5
Airwallex\AbstractClient::getCacheService()
S
71 2 6
Airwallex\Services\OrderService::setAuthorizedStatus()
S
73 2 5
Airwallex\Gateways\Card::is_captured()
S
64 2 10
Airwallex\Gateways\CardSubscriptions::mustSaveCard()
S
72 2 6
Airwallex\AbstractClient::savePaymentIntentToCache()
S
67 2 7
Airwallex\AbstractClient::getCachedPaymentIntent()
S
68 2 7
Airwallex\Gateways\Main::validate_logos_field()
S
77 2 3
Airwallex\Gateways\Main::validate_methods_field()
S
77 2 3
Airwallex\Main::getInstance()
S
71 2 6
Airwallex\Services\CacheService::__construct()
S
77 2 3
Airwallex\Services\CacheService::get()
S
74 2 4
Airwallex\Services\LogService::__construct()
S
69 2 7
Airwallex\AdminClient::getMerchantCountry()
S
68 2 7
Airwallex\Services\LogService::getLoggingClient()
S
69 2 6
Airwallex\LoggingClient::getSessionId()
S
72 2 6
Airwallex\AbstractClient::getInstance()
S
71 2 6
Airwallex\Services\OrderService::setTemporaryOrderStateAfterDecline()
S
73 2 5
Airwallex\Services\OrderService::setPendingStatus()
S
73 2 5
Airwallex\AbstractClient::getAuthUrl()
S
78 2 3
Airwallex\Services\Util::truncateString()
S
74 2 4
Airwallex\Services\Util::round()
S
70 2 6
Airwallex\Services\OrderService::getPendingPaymentOrders()
S
65 1 11
Airwallex\Struct\PaymentIntent::setUpdatedAt()
S
77 1 4
Airwallex\Struct\PaymentIntent::getMetadata()
S
82 1 3
Airwallex\Struct\Customer::setMerchantCustomerId()
S
77 1 4
Airwallex\Gateways\Main::generate_free_html()
S
68 1 9
Airwallex\Struct\Customer::getRequestId()
S
82 1 3
Airwallex\Struct\Customer::setEmail()
S
77 1 4
Airwallex\Services\LogService::getLogFile()
S
76 1 3
Airwallex\Struct\PaymentIntent::getUpdatedAt()
S
82 1 3
Airwallex\Struct\PaymentIntent::setSupplementaryAmount()
S
77 1 4
Airwallex\Struct\PaymentIntent::setRequestId()
S
77 1 4
Airwallex\LoggingClient::isActive()
S
77 1 3
Airwallex\Struct\PaymentIntent::setDescriptor()
S
77 1 4
Airwallex\Struct\Refund::getRequestId()
S
82 1 3
Airwallex\Struct\PaymentIntent::getClientSecret()
S
82 1 3
Airwallex\Struct\PaymentIntent::setReturnUrl()
S
77 1 4
AirwallexController::__construct()
S
80 1 3
Airwallex\Struct\Refund::getStatus()
S
82 1 3
Airwallex\Struct\PaymentIntent::getPaymentConsentId()
S
82 1 3
Airwallex\Struct\PaymentIntent::setCurrency()
S
77 1 4
Airwallex\Struct\PaymentIntent::setOrder()
S
77 1 4
Airwallex\Struct\Customer::getUpdatedAt()
S
82 1 3
Airwallex\MainClient::__construct()
S
67 1 7
AirwallexController::setTemporaryOrderStateAfterDecline()
S
81 1 3
Airwallex\Struct\PaymentIntent::getOrder()
S
82 1 3
Airwallex\Struct\PaymentIntent::setLatestPaymentAttempt()
S
77 1 4
Airwallex\Struct\Customer::setLastName()
S
77 1 4
Airwallex\Struct\Customer::getEmail()
S
82 1 3
Airwallex\Gateways\Main::process_payment()
S
67 1 8
Airwallex\WeChatClient::__construct()
S
67 1 7
Airwallex\Struct\Customer::getLastName()
S
82 1 3
Airwallex\Struct\PaymentIntent::getSupplementaryAmount()
S
82 1 3
Airwallex\Struct\Refund::setCurrency()
S
77 1 4
Airwallex\Struct\Customer::getFirstName()
S
82 1 3
Airwallex\Main::isJsLoggingActive()
S
77 1 3
Airwallex\Services\LogService::log()
S
76 1 3
Airwallex\Struct\PaymentIntent::getStatus()
S
82 1 3
Airwallex\Struct\PaymentIntent::getCurrency()
S
82 1 3
Airwallex\Struct\Refund::getUpdatedAt()
S
82 1 3
Airwallex\Struct\PaymentIntent::getAmount()
S
82 1 3
Airwallex\Struct\PaymentIntent::setMetadata()
S
77 1 4
Airwallex\Struct\Refund::setRequestId()
S
77 1 4
Airwallex\CardClient::__construct()
S
67 1 7
Airwallex\Services\LogService::debug()
S
74 1 4
Airwallex\Struct\Customer::setCreatedAt()
S
77 1 4
Airwallex\LoggingClient::__construct()
S
71 1 6
Airwallex\Struct\PaymentIntent::getCreatedAt()
S
82 1 3
Airwallex\AbstractClient::getAuthorizationRetryClosure()
S
70 1 7
Airwallex\AdminClient::__construct()
S
74 1 5
Airwallex\Services\CacheService::set()
S
78 1 3
Airwallex\Struct\Refund::setStatus()
S
77 1 4
Airwallex\Struct\PaymentIntent::getRequestId()
S
82 1 3
Airwallex\Struct\Customer::setRequestId()
S
77 1 4
Airwallex\Gateways\WeChat::process_payment()
S
67 1 8
Airwallex\Struct\PaymentIntent::setMerchantOrderId()
S
77 1 4
Airwallex\Struct\PaymentIntent::getLatestPaymentAttempt()
S
82 1 3
Airwallex\Struct\PaymentIntent::setCustomerId()
S
77 1 4
Airwallex\Struct\PaymentIntent::setPaymentConsentId()
S
77 1 4
Airwallex\Struct\Refund::setPaymentIntentId()
S
77 1 4
Airwallex\Struct\PaymentIntent::getMerchantOrderId()
S
82 1 3
Airwallex\Struct\Refund::setUpdatedAt()
S
77 1 4
Airwallex\Struct\PaymentIntent::setStatus()
S
77 1 4
Airwallex\Struct\Refund::getMetaKey()
S
80 1 3
Airwallex\AbstractClient::getHttpClient()
S
80 1 3
Airwallex\Struct\Customer::setFirstName()
S
77 1 4
Airwallex\Struct\PaymentIntent::setAmount()
S
77 1 4
Airwallex\Struct\Refund::setCreatedAt()
S
77 1 4
Airwallex\Struct\Refund::getPaymentAttemptId()
S
82 1 3
Airwallex\Main::addPluginSettingsLink()
S
71 1 5
Airwallex\Struct\Refund::setReason()
S
77 1 4
Airwallex\Struct\Refund::getCreatedAt()
S
82 1 3
Airwallex\Struct\PaymentIntent::setClientSecret()
S
77 1 4
Airwallex\Main::handleStatusChange()
S
80 1 3
Airwallex\Struct\PaymentIntent::getCapturedAmount()
S
82 1 3
Airwallex\Struct\PaymentIntent::getDescriptor()
S
82 1 3
Airwallex\Main::checkPendingTransactions()
S
81 1 3
Airwallex\Struct\Customer::setId()
S
77 1 4
Airwallex\Struct\PaymentIntent::setId()
S
77 1 4
Airwallex\Struct\PaymentIntent::setCapturedAmount()
S
77 1 4
Airwallex\Struct\Refund::setId()
S
77 1 4
Airwallex\Gateways\Card::is_capture_immediately()
S
78 1 3
Airwallex\Struct\Customer::getCreatedAt()
S
82 1 3
Airwallex\Struct\Refund::getPaymentIntentId()
S
82 1 3
Airwallex\Struct\Refund::getReason()
S
82 1 3
Airwallex\Main::getInstanceKey()
S
80 1 3
Airwallex\AbstractClient::testAuth()
S
65 1 8
Airwallex\Services\LogService::warning()
S
71 1 5
Airwallex\Struct\PaymentIntent::setCreatedAt()
S
77 1 4
Airwallex\Services\LogService::error()
S
71 1 5
Airwallex\AbstractClient::getReferrer()
S
68 1 8
Airwallex\Main::init()
S
75 1 5
Airwallex\Struct\PaymentIntent::getReturnUrl()
S
82 1 3
Airwallex\Struct\Refund::setAmount()
S
77 1 4
Airwallex\Struct\Refund::getId()
S
82 1 3
Airwallex\Struct\Refund::getAmount()
S
82 1 3
Airwallex\Struct\PaymentIntent::getCustomerId()
S
82 1 3
Airwallex\Struct\Refund::setPaymentAttemptId()
S
77 1 4
Airwallex\Struct\Customer::setUpdatedAt()
S
77 1 4
Airwallex\Struct\Refund::getCurrency()
S
82 1 3
Airwallex\Struct\Customer::getMerchantCustomerId()
S
82 1 3
Airwallex\Struct\PaymentIntent::getId()
S
82 1 3
Airwallex\Struct\Customer::getId()
S
82 1 3