SeunAdelekan/PaystackJava

View on GitHub
src/me/iyanuadelekan/paystackjava/core/PaystackInline.java

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Method paystackStandard has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public JSONObject paystackStandard(String reference, int amount, String email, String plan, String callback_url) {
Severity: Minor
Found in src/me/iyanuadelekan/paystackjava/core/PaystackInline.java - About 35 mins to fix

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

    public JSONObject chargeReturningCustomer(String authorization_code, String email, String amount, String reference) {
    this.apiConnection = new ApiConnection(Definitions.PAYSTACK_INLINE_CHARGE_AUTHORIZATION);
    ApiQuery apiQuery = new ApiQuery();
     
    apiQuery.putParams("authorization_code", authorization_code);
    Severity: Major
    Found in src/me/iyanuadelekan/paystackjava/core/PaystackInline.java and 2 other locations - About 1 hr to fix
    src/me/iyanuadelekan/paystackjava/core/Transactions.java on lines 196..206
    src/me/iyanuadelekan/paystackjava/core/Transactions.java on lines 239..249
    Category
    Status