1

In my iOS app, as part of the mobile payments options, I'd like to direct users who have the Square app installed on their device to use this as a payment option.

Is there a custom URL scheme that Square uses that would allow me to launch their app from within mine?

Karthik
  • 85
  • 6

2 Answers2

4

Yes, the Square app does have a custom URL schema you can call: square://

You can also see if the application is installed by the following method:

- (BOOL)isSquareInstalled 
{ 
    return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"square://"]]; 
}
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • 1
    Is there any way to pass information using that URL? For instance, can I pass in the name of the client to bill with a product/pricing list? – mbm29414 Aug 28 '12 at 00:31
  • Thats a good question @mbm30075, I am not aware of the data structure but you could possible contact their support to see if you could get some docs on passing that info to the app. – WrightsCS Aug 28 '12 at 02:10
2

The Square Pay app uses the URL Scheme square-pay://