Open aditya2592 opened 7 years ago
cc: @vedhavyas
@aditya2592 would be very helpful if you could paste the response here
Hi, this is the response obtained using Postman for the same payment ID :
"payment": {
"payment_id": "MOJO7418005J69013940",
"quantity": 1,
"status": "Credit",
"link_slug": null,
"link_title": null,
"buyer_name": "Aditya Agarwal",
"buyer_phone": "9972455233",
"buyer_email": "darkhell99@gmail.com",
"currency": "INR",
"unit_price": "10.00",
"amount": "10.00",
"fees": "0.19",
"shipping_address": null,
"shipping_city": null,
"shipping_state": null,
"shipping_zip": null,
"shipping_country": null,
"discount_code": null,
"discount_amount_off": null,
"variants": [],
"custom_fields": {},
"affiliate_id": null,
"affiliate_commission": "0",
"created_at": "2017-04-18T14:26:52.442476Z",
"payment_request": "https://test.instamojo.com/api/1.1/payment-requests/7067a337286245799fcdef087ce930c6/"
},
"success": true
}
What are we supposed to provide as argument to below call? The README says payment order ID but the java class looks more like that of a "Get request details" instead of "Get payment details". So should be provide payment request ID?
PaymentOrderDetailsResponse paymentOrderDetailsResponse = api.getPaymentOrderDetails("[PAYMENT_ORDER_ID]");
Should be PaymentRequestID @aditya2592
Hi,
I am getting an error while trying to collect the response from a getPaymentOrderDetails call. It seems that the API is not able to convert the response to JSON. Log is shown below. Any help would be greatly appreciated.