
com.paymentwall.java.response.Abstract Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paymentwall-java Show documentation
Show all versions of paymentwall-java Show documentation
This library allows developers to use Paymentwall APIs (Virtual Currency, Digital Goods featuring recurring billing, and Virtual Cart).
package com.paymentwall.java.response;
import com.paymentwall.java.Messages;
import org.json.simple.JSONObject;
public class Abstract extends Messages {
protected JSONObject response = new JSONObject();
public Abstract(JSONObject response) {
this.response = response;
}
@SuppressWarnings("unchecked")
protected JSONObject wrapInternalError() {
JSONObject object = new JSONObject();
{
JSONObject subObject = new JSONObject();
subObject.put(PROP_MESSAGE, VALUE_INTERNAL_ERROR);
object.put(PROP_SUCCESS, 0);
object.put(PROP_ERROR, subObject);
}
return object;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy