Open rahul-dhanuka opened 8 years ago
Hi, im facing same problem as PaymentAccepted is getting called twice on devices api>19. did you came up with any solution to this?
Hi Vierchas, I didn't get any official solution from ePay, but I managed it from mine side.
I have used ePay in one of my android app, and the issue i am facing is that it is returning two times in PaymentResultListener callback after successful payment. This issue is facing in android lollipop os, for other os it is working fine.
Here is my ePay start method for loading window:-
private void startePay() { String md5Json = md5(getJsonStringHash()); Map<String, String> data = new HashMap<String, String>(); data.put("merchantnumber", /My sandbox text number/); data.put("currency", "NOK");
PaymentResultListener resultListener = new PaymentResultListener() { @Override public void PaymentAccepted(final Map<String, String> map) { Log.e("PaymentMethodFragment", "PaymentAccepted"); //Issue // On successful payment accepted it is coming here two times.
What wrong i am doing, please help me out.
1 more issue i am facing is my ePay Window is not getting closed after successful payment done, previously it was closing whenever i came PaymentAccepted result callback.