final LineItem customLineItem = new LineItem(); customLineItem.setName("foo"); customLineItem.setUnipe tQty(1); customLineItem.setPrice(-100L); final OrderConnector orderConnector = getConnector(CommonActivity.ORDER_CONNECTOR); new AsyncTask<Void,Void,Order>() { @Override protected Order doInBackground(Void... voids) { try { Order order = orderConnector.createOrder(new Order().setManualTransaction(true)); orderConnector.addCustomLineItem(order.getId(), customLineItem, false); return order; } catch (Exception e) { e.printStackTrace(); return null; } } @Override protected void onPostExecute(Order order) { if (order != null) { Intent payIntent = new Intent(Intents.ACTION_CLOVER_PAY); payIntent.putExtra(Intents.EXTRA_CLOVER_ORDER_ID, order.getId()); payIntent.putExtra(Intents.EXTRA_OBEY_AUTO_LOGOUT, true); //payIntent.putExtra(Intents.EXTRA_TRANSACTION_TYPE, "credit"); payIntent.setFlags(payIntent.getFlags() | Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(payIntent); } } }.execute();The initial receipt print looks okay, but a re-print shows the following as the total / tender line:
TEST REFUND $1.00 CREDIT NULLI'll file a bug for us to fix this.
Thanks for your response.
We've build a android app that runs on clover device and had implemented payout functionality on click of custom payout button. When payout is done through our app, we add some information to clover order connector and process pay through clover. But why credit card details are printed on receipt although I don't provide card details to clover while this transaction. This happens when we select custom tender while payout. Please consider attached receipt.payout-receipt.jpg
Seems like a bug to me. Looks like you did a manual refund (aka credit). Do things work if you do a sale with that tender? Does the receipt look correct?
Please provide an example that reproduces the problem. This is probably some nuance of of you are using the SDK but I can't troubleshoot it with nothing to go on.
Winner winner, chicken dinner.
payIntent.putExtra(Intents.EXTRA_TRANSACTION_TYPE, "credit");
A couple of questions,
Thanks!
Ps: It's easier to share the ultimate goal.
I tried your code, with my own merchant tender. It worked fine. First thing is your use of the term "custom tender". That's a method to allow Clover to call out to another app to process the payment. There are also merchant tenders, which are essentially just labels with no logic behind them. "Check" is an example, where it's just expected that the merchant has accepted and verified the check out of band. Are you using a custom tender or a merchant tender?
PS @Bryanne Vega "credit" doesn't mean credit card, it means a credit transaction, as opposed to a sale.
Order order = new Order(getOrderFromRest)Then printing that Order Object. This is only a temporary solution if this affects your tool until it is fixed.
3 People are following this question.