question

chrism avatar image
chrism asked chrism answered

Custom Tender

I've been trying to implement the extensible tender example to understand how to wire in my custom loyalty server (there are several posts of other devs wanting to do something similar and it all seems to come back to custom tender). When I set up the emulator and run the python install script, all the APKs load and after the device reboots I choose the Clover launcher and it goes to a screen with a "Closeout" button and not much else, I expected to see a POS screen where I could access these apps. If I install just the Register and Orders APKs, they do show up and I can access them, If I click 'Pay' in Register, I just get a progress indicator. Obviously I need to add payments. Do I need all of the APKs on the emulator to test a custom tender? It's not clear what many of the APKs are for. Thanks

Custom Tenders
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 David Marginian Deactivated edited

" If I click 'Pay' in Register, I just get a progress indicator"

A devkit is required to test payment flows.

10 |2000

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

chrism avatar image
chrism answered David Marginian Deactivated edited

Just to verify I am understanding correctly - the only way to add a button to call out to a third party service is via custom tender and a custom tender can only be tested on a physical device so there is no way to develop this solution without a physical device. Thank you

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.

David Marginian avatar image David Marginian ♦♦ commented ·

Sorry for the confusion, you can't test normal payment flows but you should be able to test a custom tender - https://community.clover.com/questions/16141/how-do-i-grant-permission-to-create-a-custom-tende.html.. You should follow the instructions here to set up the emulator - https://docs.clover.com/docs/setting-up-an-android-emulator.. If you are having issues you should take a look at the logs.

1 Like 1 ·
chrism avatar image
chrism answered

Ok, thank you

10 |2000

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

chrism avatar image
chrism answered David Marginian Deactivated commented

1639152382909.jpeg

This is from the Creating custom tender apps (clover.com) which looks like it is running on an emulator on Mac. But the screen displays "Payments" rather than "Register". If I can get to this screen, I think I would be all set. I'm not doing performing any payment activities. Should this screen appear when I click the "Pay" button on the register app or does this screen only work on a device? If it can work on the emulator, which APKs do I need for this screen? Installing all of them via the python script instructions only displays the "Closeout" button screen I described earlier and I can do nothing else (I've done this twice now with identical results). I'm just trying to narrow down what APKs I actually need to do this small task, up to this point it's been a lot of trial and error. Thanks.



1639152382909.jpeg (224.7 KiB)
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.

David Marginian avatar image David Marginian ♦♦ commented ·

I would expect creating an order via register, reviewing it and selecting pay would result in the screen you attached. Can you explain exactly what you are doing or provide a video?

0 Likes 0 ·
chrism avatar image
chrism answered

That's correct.

The screenshot is from Clover's document here: https://docs.clover.com/docs/creating-custom-tender-apps however the screen I actually get when I click the 'Pay' button is this:

1639155794264.png

which makes me think it is missing an APK, maybe updater is trying to pull it and is having some issue? I will have to see if logcat can tell me more. (My Apologies, this is the first Android app I have developed so I'm learning as I go). Thank you


1639155794264.png (20.8 KiB)
10 |2000

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

chrism avatar image
chrism answered

I notice it gets stuck trying to install core payments. [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]. Seems to be an ARM vs x86 issue.

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