• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • Semi-Integration
This question was closed Apr 02 at 09:50 PM by Clover_Community_Bot for the following reason: automated

question

cdcilley avatar image
cdcilley asked · Apr 05, 2018 at 11:41 PM

Clover Go <--> REST API connect for Orders and Line Items

I've been working for a while trying to get Clover working with a custom POS I've written for a client. Originally, I was working with a Clover Station. After a lot of forum discussion ( here) it was suggested that I could use a combination of Clover Go and the REST API to do what I wanted. @Raymond Lee ( comment): Yes, Clover Go would be a suitable alternative, since if you would be using your own Android device, you can side-load your app to the Android device. Your app can then use the Clover Go device to take payments, and use REST API calls to create Orders.

I got my hands on a Clover Go Dev Kit. I've got a test application that successfully...
  1. Runs OAuth to get an access_token, use that access token to make an ICloverGoConnectorListener(), connect to the Go via bluetooth, create a SaleRequest and run a credit card transaction.
  2. I can use that access_token to do REST API calls to create an Order, add Line Items and get back an Order ID.
What I can't do is connect 1 & 2. The Clover Go SaleRequest only takes an amount and an ExternalPaymentID (random string). There is no way to create line items - the receipt just shows "item" and the amount ( example). I've dug through the Javasdocs ( here) and can't find how to connect a REST API created OrderID to a Clover Go SaleRequest.

Honestly, I can get away with just having the Clover Go SaleRequest generated Order have the single line item, as long as I can update the description from "item" to something else.

Any pointers?
REST APIClover GoRemote Pay Android
Comment
0
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

2 Answers

  • Sort by Created Created
  • Sort by Oldest Oldest
  • Sort by Votes Votes
fredrueda avatar image
fredrueda answered · Nov 21, 2018 at 03:45 PM Locked
hi @cdcilley need your help, need connect clover go and android app please example
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

Greg avatar image
Greg answered · Apr 10, 2018 at 12:52 AM Locked
Hi @cdcilley,

The sale from the Clover Go will create a brand new order and a payment on Clover's side - no way to pass in a Clover orderId at the moment. If your requirement is to uniquely identify that order, you can get the orderId back from the saleResponse, and update that order using the REST API ( POST /v3/merchants/{mId}/orders/{orderId}). It seems like you will have to store the line items separately in your app to send as data for the REST call. You can generate the orders/receipts using that data afterwards however you like.

Greg
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

question details

2 People are following this question.

cdcilley follows this question rachel follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

CloverGo remote-pay-android-go Gradle error during integration into my Android Studio project 7 Answers

Clover Go Reader Update Process 2 Answers

How to redirect to another activity after payment with android cloverconnector success 1 Answer

saleRequest.DisablePrinting 1 Answer

Clover Go api key and secret 3 Answers

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.