All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paymentwall.java.Response.Success Maven / Gradle / Ivy

package com.paymentwall.java.Response;

import org.json.simple.JSONObject;

public class Success extends Abstract implements Interface {
    public Success(JSONObject response) { super(response); }

    public JSONObject process() {
        if (response.isEmpty())
            return wrapInternalError();
        response = new JSONObject();
        response.put(PROP_SUCCESS, 1);
        return response;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy