question

ashwinipatil avatar image
ashwinipatil asked David Marginian Deactivated edited

How can i update paid status from our app while doing payment using custom tender ?

I am using custom tender functionality. and from clicking on custom tender button i am navigating in our app then we are proceeding transaction but not able to update paid status in orders app..I am using following code

Intent data = new Intent();

data.putExtra(Intents.EXTRA_AMOUNT, objTenderDetails.getAmount());

data.putExtra(Intents.EXTRA_CLIENT_ID, Utils.nextRandomId());

data.putExtra(Intents.EXTRA_NOTE, "Transaction Id: " + Utils.nextRandomId());

data.putExtra(Intents.EXTRA_CLOVER_ORDER_ID, objTenderDetails.getOrderId());

setResult(RESULT_OK, data);

finish();



Please reply ASAP

OrdersCustom Tenders
10 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ashwinipatil avatar image ashwinipatil commented ·

How can i use this code in also fragment?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

I don't know what you mean by "paid status".

You don't need to update the order at all in your custom tender. You just return RESULT_OK and an amount paid. Your code looks okay to me.

0 Likes 0 ·
ashwinipatil avatar image ashwinipatil Jeffrey Blattman ♦♦ commented ·

without using following code

Intent data = new Intent();

data.putExtra(Intents.EXTRA_AMOUNT, objTenderDetails.getAmount());

data.putExtra(Intents.EXTRA_CLIENT_ID, Utils.nextRandomId());

data.putExtra(Intents.EXTRA_NOTE, "Transaction Id: " + Utils.nextRandomId());

data.putExtra(Intents.EXTRA_CLOVER_ORDER_ID, objTenderDetails.getOrderId());

setResult(RESULT_OK, data);

finish();

how we can update paid status using sdk method? also we are not going to call any clover api. please let me know if there is any way.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ ashwinipatil commented ·

As Jeff previously said, you set an amount paid and you return RESULT_OK, that is all you need to do. Perhaps, you can explain exactly what the problem you are seeing with that approach is?

0 Likes 0 ·
Show more comments

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community