
com.razorpay.TokenClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of razorpay-java Show documentation
Show all versions of razorpay-java Show documentation
Official java bindings for the Razorpay API
The newest version!
package com.razorpay;
import org.json.JSONObject;
import java.util.List;
public class TokenClient extends ApiClient{
TokenClient(String auth) {
super(auth);
}
public Token create(JSONObject request) throws RazorpayException {
return post(Constants.VERSION, Constants.CREATE_TOKEN, request);
}
public Token fetch(JSONObject request) throws RazorpayException {
return post(Constants.VERSION, Constants.FETCH_TOKEN, request);
}
public List delete(JSONObject request) throws RazorpayException {
return post(Constants.VERSION, Constants.DELETE_TOKEN, request);
}
public Token processPaymentOnAlternatePAorPG(JSONObject request) throws RazorpayException {
return post(Constants.VERSION, Constants.TOKEN_SERVICE_PROVIDER, request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy