razorpay
здесь документ плана маршрута:
документ плана
вот мой код:
Код: Выделить всё
public String createRazorpayPlan(PlanRequest request) throws RazorpayException {
RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]");
JSONObject planRequest = new JSONObject();
planRequest.put("period","monthly");
planRequest.put("interval",1);
JSONObject item = new JSONObject();
item.put("name","Test plan - Monthly");
item.put("amount",1000);
item.put("currency","INR");
item.put("description","Description for the test plan");
planRequest.put("item",item);
Plan plan = razorpay.plans.create(planRequest);
Подробнее здесь: https://stackoverflow.com/questions/790 ... using-java
Мобильная версия