question

oerhuilaji avatar image
oerhuilaji asked parquet76 commented

Ask for a best practice

We now have our own POS software, and a customer wants to use clover pay. The specific scenario is that when checking out on POS, the clover device (the customer is currently flex 2nd) is called to initiate a payment request, and the result is returned to POS for checkout.

Now I want to test the simulator with rest pay display. Is there a more effective way to complete my scenario?

REST APIEmulator
10 |2000

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

parquet76 avatar image
parquet76 answered

I am not sure what your question is but you need a dev kit to test semi integrations.

10 |2000

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

oerhuilaji avatar image
oerhuilaji answered parquet76 commented

I want send a request to clover device, and the device can prompt customer to swipe card,after swipe it tell me the respone (success/faild/timeout)

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.

parquet76 avatar image parquet76 commented ·

Isn't that what I helped you with on this thread https://community.clover.com/questions/45869/clover-rest-payment-api.html? As a refresher, here are the docs - https://docs.clover.com/docs/rest-pay-overview. You need a Clover devkit to test your integration.

0 Likes 0 ·
oerhuilaji avatar image
oerhuilaji answered parquet76 edited

yes, the customer is in a different country, and I can't get a physical machine for clover, so I want to install an emulator first,


but after install clover engine apk, the script install_apps.py crash,

Traceback (most recent call last):

File "install_apps.py", line 191, in <module>

main(sys.argv[1:])

File "install_apps.py", line 149, in main

for row in conn.execute('select * from apps'):

sqlite3.OperationalError: no such table: apps



and i list the file in folder

ls /var/folders/2c/fy8vpqps6zx0qgpdckcj0f9r0000gn/T/*db*

/var/folders/2c/fy8vpqps6zx0qgpdckcj0f9r0000gn/T/adb.501.log

/var/folders/2c/fy8vpqps6zx0qgpdckcj0f9r0000gn/T/appinfo.db-shm

/var/folders/2c/fy8vpqps6zx0qgpdckcj0f9r0000gn/T/appinfo.db-wal

/var/folders/2c/fy8vpqps6zx0qgpdckcj0f9r0000gn/T/xcrun_db


1690250785797.png


1690250785797.png (174.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.

parquet76 avatar image parquet76 commented ·

An emulator is not going to help you. You cannot use an emulator to take payments. You need a devkit.

0 Likes 0 ·
oerhuilaji avatar image
oerhuilaji answered parquet76 commented

sorry, does the devkit is SDK? and i will use the sdk to communicate with the device

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.

parquet76 avatar image parquet76 commented ·

A devkit is a physical Clover device that hits the sandbox environment. https://cloverdevkit.com/. An SDK is a piece of software. You don't need a Clover SDK if you use the Rest Pay API. I would contact developer relations to make sure you still cannot use an emulator for this - https://community.clover.com/articles/33197/new-email-address-for-all-clover-developer-support.html.

0 Likes 0 ·
oerhuilaji avatar image
oerhuilaji answered parquet76 commented

Thank you for your patient answer, It might also take a while to get the equipment since I'm not in the US, if I can use the simulator to test the API first (not including payment) to complete the API process, and then test the payment when the conditions are ripe?

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.

parquet76 avatar image parquet76 commented ·
The last time I tried that the itself cloud pay/rest pay didn't work on the emulator either. Because you need a devkit o test the full integration, I don't think Clover has put effort into getting them to work on the emulator since the emulator does not support payments.
0 Likes 0 ·
oerhuilaji avatar image
oerhuilaji answered parquet76 commented

yes, I know, I just want test the api just like "status" (https://docs.clover.com/reference/device_status), if i can do that, that's close to success

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.

parquet76 avatar image parquet76 commented ·

Like I said, the last time I tried it Cloud Pay/Rest Pay didn't work on the emulator. Also, your semi integration will require a Clover approved "app" and you must demonstrate that you can handle certain payment flows outlined here - https://docs.clover.com/docs/testing-rest-pay-flows-us. You won't be able to do that without a devkit.

0 Likes 0 ·
oerhuilaji avatar image
oerhuilaji answered parquet76 commented

oh i see, we can't use emulator for rest API pay testing.

So can I ask the merchant to set up a physical machine for me to test remotely for rest api?

or do you recommend using sdk? (https://docs.clover.com/docs/sdks-doc-resources)

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.

parquet76 avatar image parquet76 commented ·
You will have the same problem with the SDK because the same app (cloud pay display) will be used on the device side.
0 Likes 0 ·

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