question

dhananjay avatar image
dhananjay asked samuel answered

How to create order and add to register app

hii,

I want to create a order and add open the register application. And further action will be performed my merchant.

Orders
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered dhananjay commented
1 comment
10 |2000

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

dhananjay avatar image dhananjay commented ·
I have found a way to create order but unable to found a way to pass my order to register application.
0 Likes 0 ·
samuel avatar image
samuel answered

To Create the order you can use the OrderConnector


Then you can use ACTION_START_REGISTER intent with the EXTRA_ORDER_ID extra to launch the register with the order

Order odr = new Order();
/*...*/
odr = ocon.createOrder(odr);

/*...*/

Intent register = new Intent(Intents.ACTION_START_REGISTER);
register.putExtra(Intents.EXTRA_ORDER_ID,odr.getId());
startActivity(register);

10 |2000

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

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