com.razorpay.AddonClient 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
package com.razorpay;
public class AddonClient extends ApiClient {
AddonClient(String auth) {
super(auth);
}
// To create an Addon, use the createAddon method of SubscriptionClient
public Addon fetch(String id) throws RazorpayException {
return get(String.format(Constants.ADDON_GET, id), null);
}
public void delete(String id) throws RazorpayException {
delete(String.format(Constants.ADDON_DELETE, id), null);
}
}