chirag-India
chirag-India

Reputation: 27

How to integrate Apple pay into watch app?

I want to access the Watchkit API for Apple pay and Healthkit data, to accomplish payment from my watch app.

Is this possible, or is there any apple document where the API access limitation is described?

Upvotes: 0

Views: 243

Answers (2)

lennartk
lennartk

Reputation: 619

WatchKit does not yet support the Apple Pay API, but you could use handoff to open a specific ViewController on the iPhone where the user can use Apple Pay.

https://developer.apple.com/handoff/ http://www.raywenderlich.com/96741/watchkit-tutorial-with-swift-tables-glances-and-handoff

Update: WatchKit does now support Apple Pay. Documentation

Upvotes: 1

bgilham
bgilham

Reputation: 5939

You can access HealthKit data by opening your iPhone app in the background using openParentApplication:reply: and accessing it from there.

There's no Apple Pay API for WatchKit at this time. The documentation that shows this fact is simply that no such API is currently in the documentation.

Upvotes: 0

Related Questions