I have completed the payment through stripe successfully in my java code. But the refund throwing error as "No such charge: ch_1G....."
Map<String, Object> params = new HashMap<>();
params.put("charge",chargeID);
Refund refund = Refund.create(params);