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
0 answers

Expressing A number in the Form of Three Squares

I am giving Q query , in each query i am given a number N , i have to output three integer such that sum of square of three integer equals to N For Ex: 3 5 13 Ans: 1,1,1 (1^2+1^2+1^2) 2,1,0 (2^2+1^2+0^2) 3 2 0 (3^2+2^2+0^2) My…
Narendra Modi
  • 851
  • 1
  • 13
  • 29
2
votes
2 answers

Okhttp3 is not see WebSocket interface in Android Studio

I get some problems with okhttp3 lib. I added the following line in my gradle file dependency: compile 'com.squareup.okhttp3:okhttp:3.4.1' After that, I try to create webSocket connection like okhttp websocket example, but in Android Studio I…
Oleg Skidan
  • 617
  • 6
  • 24
2
votes
0 answers

Google map in Flow view

I'm using flow library(https://github.com/square/flow) to display screens in my app. I have a screen with map view, I implemented it like this: public class MainView extends LinearLayout implements OnMapReadyCallback { private MapView…
sider
  • 687
  • 2
  • 9
  • 23
2
votes
2 answers

PercentFrameLayout (square form asked) in RecyclerView not showing

I try to display an ImageView as a square inside a RecyclerView's element whatever is the element's height. Here is what I would like to have: Here is my xml :
Yairopro
  • 9,084
  • 6
  • 44
  • 51
2
votes
1 answer

Android Studio XML has little yellow square

I think this little square means something important but don't know what... It goes away if I double click on it, but doesn't show up on less complex layouts within my project... any ideas why it's showing or what it means?
WM1
  • 451
  • 7
  • 14
2
votes
1 answer

OpenCV detect square with difficult background

i am working on an Android app that will recognize a GO board and create a SGF file of it. i need to detect the whole board in order to warp it and to be able to find the correct lines and stones like below. (source: eightytwo.axc.nl) right now i…
MaMiFreak
  • 789
  • 2
  • 11
  • 26
2
votes
4 answers

Square a list (or array?) of numbers in Python

I'm coming from a MATLAB background and this simple operation so far seems to be extremely complicated to implement in Python, according to the answers in other stacks. Typically, most answers use a for loop. The best I've seen so far is import…
user1936752
  • 756
  • 1
  • 9
  • 25
2
votes
2 answers

Piece-wise square of vector, piece-wise product of two vectors in C++ Eigen

Granted that v, a are Eigen::VectorXd vectors with n dimensions, I would like to make the following piece-wise operations: The piece-wise multiplication of v by a, i.e., the vector (a[1]*v[1], ..., a[n]*v[n]), and The piece-wise square of v, i.e.,…
nullgeppetto
  • 539
  • 1
  • 8
  • 25
2
votes
1 answer

Make p:imageCropper area a fixed square

Is it possible to crop image proportionally using ? I would restrict users to crop image only in square format: ______ | …
Michał Ziembiński
  • 1,124
  • 2
  • 10
  • 31
2
votes
1 answer

Android Retrofit - Callback vs no call back

I am analyzing retrofit on android and had a question on callbacks vs not using them. I am under the impression that callbacks are only used for success and failure responses a client might desire. Otherwise i would omit it. Here is an example of…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
2
votes
4 answers

Android Picasso cloned but can't run the sample project, no gradle files found

I have cloned the Square/Picasso Github repo, however, I did not find any Gradle files and therefore I am still stuck figuring out how to use the library and run the sample app as well. I want to use the code instead of the jar because I have few…
Abdellah Benhammou
  • 402
  • 1
  • 8
  • 22
2
votes
1 answer

Integrating Square with Rails project

I was wondering if anyone has integrated Square with their rails projects and could point me in the right direction in that I don't see any easy to use rails tutorials to process different payments online. I saw their api and can get the curl…
Tall Paul
  • 2,398
  • 3
  • 28
  • 34
2
votes
1 answer

Dagger ObjectGraph plus() Modules that include modules in the root module keep returning No no-args constructor

I have an Android app that uses Dagger. There are certain sections of the entire app that I want to add scoped ObjectGraphs for several activities that share a common scope. The following module is in the root ObjectGraph @Module( injects = { …
lazypig
  • 747
  • 1
  • 6
  • 22
2
votes
1 answer

Android - Runtime created objects with Dagger

I came across the dagger library from Square and I'm currently making some tests. I'm new to the DI principle so be kind :) So, I understand Dagger can inject fields and constructors. I'm also aware that in my activities, I have to .inject(this); so…
BenjO
  • 33
  • 7
1
vote
0 answers

Integrate Cash App using Square API Event trigger issue

I have integrated Cash App Payment through Square API SDKs. I have used Javascript Web SDK & PHP SDK I have mobile app for purchasing bucks and from mobile app it will open webview for cash app payment (for this I have used Square Javascript Web…
Pranav Gandhi
  • 199
  • 1
  • 1
  • 8