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
6
votes
1 answer

How it's supposed to use Anvil in multi module Android projects

I'm going to use Anvil in my project. https://github.com/square/anvil But I can't figure out what is desired model of usage for it? Should I have a single global AppScope and merge all bindings from every :core and :feature module into it? Thus,…
Maxim Alov
  • 604
  • 4
  • 14
6
votes
3 answers

delay MockWebServer response

How can I delay a Square MockWebServer HTTP response? There is a response.setBodyDelayTimeMs(...); method but this is only used in SpdySocketHandler and not for HTTP requests.
Ralph Bergmann
  • 3,015
  • 4
  • 30
  • 61
6
votes
1 answer

What does Square mean by 'offscreen fragments being brought back to life' and 'no direct control over animations'?

While discovering Android libraries and frameworks, I came across Square's blog post on Flow and Mortar. The author states that some of the motivations for developing Flow and Mortar was because ... Offscreen fragments mysteriously being brought…
Some Noob Student
  • 14,186
  • 13
  • 65
  • 103
5
votes
2 answers

Why do we need to separate DI wiring from Implementation in Android multi modular architecture?

Square Inc. has presented it's internal modular architecture at Droidcon SF'19: https://www.droidcon.com/media-detail?video=380843878 However, I'm a bit confused with some bullets. Could you please help me? Why do they actually need :wiring…
Maxim Alov
  • 604
  • 4
  • 14
5
votes
1 answer

How to implement payments in a Flutter app?

I am using flutter to build my first ever app.The app is designed for users to be able to buy and sell products amongst each other and I would like to set up functionality to have payments go through the app. There does not seem to be a lot of…
rorybell21
  • 99
  • 2
  • 8
5
votes
2 answers

How to send OkHttp post request with json multipart body along with a image file

I want to send a post request in which I've to send some data which includes json formatted data and a image file. When I'm sending request separately then its working fine, but does'nt wokring together. Please help me here, how to acheive…
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
5
votes
1 answer

espresso custom TestRunner with RxJava2 - using Rx2Idler getting null pointer exception

I have successfully created a custom espresso test runner which looks like this: public class PomeloTestRunner extends AndroidJUnitRunner { @Override public void onCreate(Bundle arguments) { …
j2emanue
  • 60,549
  • 65
  • 286
  • 456
5
votes
2 answers

Generate Protobuf java files with Square's Wire

I'm trying to generate .java files from the .proto files I have stored under my SRC folder in Android studio. I put the below code in my gradle file by it doesn't seem to work apply plugin: 'com.squareup.wire' buildscript { repositories { …
5
votes
1 answer

Can Square Tape file backed queue be used from the main thread in android?

Square has an open source project name Tape http://square.github.io/tape/ that implements a persistent file backed queue. All of the examples seem to indicate that objects can be added to the queue from the main thread. However, every other best…
apschexn
  • 81
  • 1
  • 3
4
votes
2 answers

Next.js/Square API error: Fetch API cannot load. URL scheme "webpack-internal" is not supported

I'm having this error when trying to pull stock from Square API. injectGlobalHook.js:1648 Fetch API cannot load webpack-internal:///./node_modules/@next/react-dev-overlay/lib/internal/ReactDevOverlay.js. URL scheme "webpack-internal" is not…
Peter Chavez
  • 53
  • 1
  • 7
4
votes
3 answers

React-native/iOS app: Module 'SquareInAppPaymentsSDK' not found, although it has been added to the project

For further information I have posted this also in https://github.com/square/in-app-payments-react-native-plugin/issues/66#issuecomment-623619907 - you can find more details there. The installation instructions of the package I am having problems…
Yossi
  • 5,577
  • 7
  • 41
  • 76
4
votes
5 answers

URL to open a CashApp payment?

I'm building an app where I want users to be able click a link to open up CashApp (as well as various other P2P payment apps), as far along in the transaction as possible. My client doesn't want the app to actually handle the payments, just for it…
Jonathan Tuzman
  • 11,568
  • 18
  • 69
  • 129
4
votes
3 answers

What does a Square nonce represent?

I am trying to submit a payment to Square, and am not sure what the card_nonce represents. In the full API Documentation found here: https://docs.connect.squareup.com/api/connect/v2/#endpoint-createcustomercard It states, "A card nonce…
KVNA
  • 847
  • 1
  • 11
  • 24
4
votes
6 answers

Trouble working with Square Connect ChargeResponse object

I'm able to successfully charge using the transaction API following the example on github. Executing the charge looks like this: $result = $transaction_api->charge($access_token, $location_id, $request_body); echo "
";
print_r($result);
echo…
LoneWaffle
  • 131
  • 5
4
votes
2 answers

How to disable SSLv3 fallback with okhttp

My android application relies on SNI to access the correct server, so it requires TLS and won't work with SSLv3. I'm using okhttp and retrofit and server logs indicate that suddenly TLS handshakes switch to SSLv3 and may stay this way for a log…
hdante
  • 7,685
  • 3
  • 31
  • 36
1
2
3
43 44