runmyrobot / letsrobot_ios

iOS client
BSD 3-Clause Clear License
1 stars 1 forks source link

 Pay Integration #30

Open Sherlouk opened 7 years ago

Sherlouk commented 7 years ago

Apple Pay is compatible on all phones since/including the iPhone 6. It's also iPads since the Air 2.

We have a couple of payment points within the application, namely exclusive control (#24), robits (#14) but also could be expanded for things like donations to Lets Robot or the individual caster.

According to Apples website

Are there additional fees to accept Apple Pay? Apple does not charge users, merchants or developers to use Apple Pay for payments.

The level of integration the Apple Pay API has into the app is very good, it means we don't need to take users away from the app to pay via alternative methods such as PayPal or otherwise. Assuming they've already setup Apple Pay it could be as simple as press "Buy Exclusive Control", authenticate with your touch ID and then control the bot all seamlessly

runmyrobot commented 7 years ago

Coolio, let me know how the mobile app will need to communicate to the web app that there's been a payment for a service and I can create an endpoint for it

Sherlouk commented 7 years ago

@runmyrobot So I think for this there are no extra endpoints required (will need to double check that) but the main issues are around simply setting up the Apple Pay with a bank account the money goes into etc.

Will need to talk to you guys about this in more details, especially around the fact certain features ( Pay, Push Notifications, actually releasing etc) can only be done with a paid developer account ($100/yr).

runmyrobot commented 7 years ago

You'd have to let the web application know that a user bought xcontrol so that the web app can proceed to initiate the actual xcontrol

Sherlouk commented 7 years ago

@runmyrobot There's already an API for that, checked the other day

runmyrobot commented 7 years ago

If you mean the POST /internal/braintree/xcontrol/nonce, that endpoint is tightly integrated with braintree's API right now. I think a bunch of changes would have to be made to allow for other kinds of payments such as Apple Pay

Sherlouk commented 7 years ago

@runmyrobot Ahh right cheers for letting me know - We're quite a whilst from working on this anyway, but closer to the time we can definitely discuss this in more detail.

Updated labels to reflect this!

runmyrobot commented 7 years ago

awesome possum, yeah, hopefully we'll get to it soon, would be great to have xcontrol working on mobile (as well as robits)

runmyrobot commented 7 years ago

Payments may not be that hard, actually

Just looked at the braintree API and they may allow accepting payments via PayPal, Apple Pay, Venmo, Credit Card all in one API

Sherlouk commented 7 years ago

Looks like braintree have an API with their own drop-in UI: https://developers.braintreepayments.com/start/hello-client/ios/v4

Not sure how we would bridge the gap in between

Sherlouk commented 7 years ago

https://developers.braintreepayments.com/guides/apple-pay/configuration/ios/v4