Questions tagged [square]

Square APIs lets developers process payments online & in-person as well as accessing different information in Square merchant accounts.

Square offers Rest APIs for accessing merchant account data (with their permission of course!) as well as e-commerce. You can also integrate with Square's hardware in your mobile devices with the Point of Sale API for Android, iOS and the web.

Learn more about Square's offerings for developers at Square.com/developers

657 questions
2
votes
2 answers

What is more efficient, an algorithm to calculate x^2 or one to calculate the square root of a number?

What are the more efficients algorithms to calculate x^2 and x^(1/2)? And between the best of both what is more efficient? The problem I'm trying to solve consists in find the nth 'green' number, where a N is a 'green' number if N^2 ends with n. For…
Gealber
  • 463
  • 5
  • 13
2
votes
1 answer

Undefined symbols for architecture armv7 on Square Reader SDK

I am trying to add Square Reader SDK to the project. The valid architectures are arm64, armv7, armv7s, armv6 and x86. I can run the application on the simulators and physical devices, but when i try to archive the project i am facing with this…
Emre Ertan
  • 91
  • 6
2
votes
2 answers

don't let one square go beyond the second square

I have 2 squares and all positions for rotated square sq1.x1y1 sq1.x2y2 sq1.x3y3 sq1.x4y4 sq1.maxX sq1.minX sq1.maxY sq1.minY sq1.rotatedAngl sq1.cX sq1.cY all positions before rotation and for second square sq2.x1y1 sq2.x2y2 sq2.x3y3 sq2.x4y4…
2
votes
4 answers

Segmentation fault after passing a matrix to a function

My program needs to check if the input matrix is a magic square. It is almost done, but I have a problem with fuction. I am not sure why but it return wrong values. I need function to return 1 if square is magic and to return 0 if square isn´t…
Dudo
  • 27
  • 5
2
votes
1 answer

Problems with initializing Square iframes in Angular 6 form

I'm having a problem with loading Square iframes to my form. When I navigate from navbar to payment form iframes are not loading in my inputs fields. The only way to load them is to hit refresh of my payment form. Here is my payment.ts: import {…
pooh098
  • 201
  • 1
  • 4
  • 15
2
votes
0 answers

Woocommerce Square Payment Plugin issue

Our client is facing issue while trying to do payment via Woocommerce Square Payment Plugin. As according to their website reference, they currently only supports Real time payment, no sandbox like structure. Please see this link:-…
M.Bains
  • 395
  • 1
  • 2
  • 14
2
votes
2 answers

Integrating old web site with Square Checkout API

Forgive my naivete here, but I am an old developer moving into the modern age. In short, I have an old web site programmed in ASP (I know, I know) that needs to use the Square Checkout API for very simple processing of payment. Thus, I need to…
CBob
  • 21
  • 1
2
votes
2 answers

Square Connect API: Retrieving all items within a category

I have been reading over the Square Connect API and messing around with the catalog portion. I am unable to find how to retrieve all items and their data associated with a particular category. Can someone please point me in the right direction. I…
Corey Gumbs
  • 372
  • 6
  • 13
2
votes
1 answer

Using Bootstrap with SqPaymentForm (Square)

I have a website that uses Bootstrap 4. In this site, I'm trying to collect payments using the Square Payment Form. I'm simply trying to make the payment fields look like a Bootstrap 4 form. However, the CSS is way off. At this time, I have this…
user70192
  • 13,786
  • 51
  • 160
  • 240
2
votes
1 answer

Can I use the square reader as a generic magstrip reader?

I have a Square S4 reader. Is there any way to use this to read arbitrary magnetic strips for security research? I have heard that the output is encrypted - is there any client software I can use to decrypt?
r1b
  • 23
  • 3
2
votes
1 answer

Fixed amount contactless kiosk type possible?

Hi my client is a charity. They would like to apply a fixed amount to a app/webapp where people can just tap and walk away donating fixed amount without any merchant interaction needed. Such terminal will probably be fixed to a stand... With a…
Hassan
  • 301
  • 1
  • 13
2
votes
1 answer

How can I get more data locations detail?

I tried "/v1/me/locations". But I did not have the data I want. I want to get more data of locations.(here data -> https://squareup.com/dashboard/locations/) example : address_line_2+ ( billding name, etc... ) I could get only…
2
votes
1 answer

For-loop is putting in too many values in my table

So I have a for loop: for k, pt in pairs(points) do self.centers[k] = Center:new() -- is part of my Map object, and Center is an object local bottomleft = Corner:new() table.insert(self.centers[k].corners, bottomleft) …
2
votes
1 answer

Not Found error when charging Square API

The Square REST API docs state that I should get a list of my locations and then use a returned location code when I call the transactions endpoint (to charge a credit card). I am doing exactly this but the returned error says that the merchant has…
Jim Archer
  • 1,337
  • 5
  • 30
  • 43
2
votes
1 answer

How do I extract the "detail" from square charge

When I catch the exception from the square charge object, I am returned with [HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"CARD_TOKEN_USED","detail":"Card nonce already used; please request new nonce."}]} I want…