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

com.paymentwall.java.HttpActionBuilder Maven / Gradle / Ivy

Go to download

This library allows developers to use Paymentwall APIs (Virtual Currency, Digital Goods featuring recurring billing, and Virtual Cart).

There is a newer version: 2.0.4
Show newest version
package com.paymentwall.java;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * Pattern Builder for HttpAction class
 */
public class HttpActionBuilder {
    private ApiObject object;
    private HashMap params = new HashMap(){{
        put("public_key", Config.getInstance().getPublicKey());
    }};
    private ArrayList headers = new ArrayList();

    public HttpActionBuilder(ApiObject object) {
        this.object = object;
    }

    public void setParams(HashMap params) {
        this.params = params;
    }

    public void setHeaders(ArrayList headers) {
        this.headers = headers;
    }

    public HttpAction build() {
        return new HttpAction(object,params,headers);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy