question

James Tickett avatar image
James Tickett asked jim-patel answered

How can I get EXTRA_ORDER from an Intent?

I can easily return OrderID using:

String orderId = intent.getStringExtra(Intents.EXTRA_ORDER_ID);

and I see there an Extra used on ACTIONMERCHANTTENDER that stores the Order itself (EXTRAORDER), as documented here: https://clover.github.io/clover-andro...ORDER

Order order = intent.getStringExtra(Intents.EXTRA_ORDER);

I can't understand how to load this into an Order object. Obviously there is no "getOrderExtra" method, so I seem to be limited to returning standard object types. Casting didn't work for me, so I thought I would ask here!

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.

Dan avatar image
Dan answered

Well I didn't know you can do that :D What I do is get the order via the order connector using it's ID.

10 |2000

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

jim-patel avatar image
jim-patel answered

I believe that this should get what you want:

Order order = intent.getParcelableExtra(Intents.EXTRA_ORDER);

10 |2000

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