Hello guys I’m trying to send the receipt by email but I’m getting: PoyntAPIException.
On my P5 everything works OK.
P5: P5SW364HT003771
P6: P61SWD074HS020153
Do I missing something on my P6 terminal ???
From my manifest:
From my class:
import co.poynt.os.services.v1.IPoyntReceiptPrintingService;
import co.poynt.os.services.v1.IPoyntReceiptPrintingServiceListener;
import co.poynt.os.services.v1.IPoyntReceiptSendListener;
private static IPoyntReceiptSendListener receiptSendListener = new IPoyntReceiptSendListener.Stub() {
@Override
public void success() throws RemoteException
{
Log.d(TAG, “Receipt Send Success”);
}
@Override
public void failure() throws RemoteException {
Log.d(TAG, "Receipt Send Failure");
}
};
private void sendReceiptByEmail(String email)
{
try {
receiptPrintingService.sendReceipt(null, getTxnId(), email, null, receiptSendListener);
} catch (RemoteException e) {
e.printStackTrace();
Log.e(TAG, e.getMessage());
}
}
11-14 00:01:05.488 1420-2217/? E/CO.POYNT.SERVICES/ReceiptPrintingService.java:108: Binder_5 PoyntAPIException{HTTP statusCode=404 apiErrorCode=null Network Error? false errorInfo=n/a}
at co.poynt.services.rest.RestErrorHandler.handleError(RestErrorHandler.java:18)
at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:242)
at $Proxy17.sendEmail(Native Method)
at co.poynt.services.processors.PoyntSendReceiptProcessorImpl.sendReceipt(PoyntSendReceiptProcessorImpl.java:106)
at co.poynt.services.processors.PoyntSendReceiptProcessorImpl.sendReceiptEmail(PoyntSendReceiptProcessorImpl.java:41)
at co.poynt.services.ReceiptPrintingService$1.sendReceipt(ReceiptPrintingService.java:102)
at co.poynt.os.services.v1.IPoyntReceiptPrintingService$Stub.onTransact(IPoyntReceiptPrintingService.java:173)
at android.os.Binder.execTransact(Binder.java:404)
at dalvik.system.NativeStart.run(Native Method)