You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the payment reported by the IPN. Glossary of attributes response in https://developers.mercadopago.comJSONObjectpayment_info = mp.getPaymentInfo(request.getParameter("ID"));
// Show payment informationif (Integer.parseInt (payment_info.get("status").toString()) == 200) {
out.print(payment_info.get("response"));
}
Cancel (only for pending payments):
JSONObjectresult = mp.cancelPayment(request.getParameter("ID"));
// Show resultout.print(result);
Refund (only for accredited payments):
JSONObjectresult = mp.refundPayment(request.getParameter("ID"));
// Show resultout.print(result);