@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == MANUAL_PAY) {
Payment p = data.getParcelableExtra(Intents.EXTRA_PAYMENT);
final String oId = p.getOrder().getId();
new AsyncTask<Void, Void, Void>() {
@Overrideprotected Void doInBackground(Void... params) {
try{
Order o = mOrderConnector.getOrder(oId).setNote("TEST");
mOrderConnector.updateOrder(o);
pj = new StaticReceiptPrintJob.Builder().order(o).build();
pj.print(getBaseContext(), mAccount);
}catch (Exception e) {
e.printStackTrace();
}
return null;
}
}.execute();
}
No one has followed this question yet.