Implementation of PayPal and Apple Pay - ios

I want implementation of apple pay and paypal both. if I am implementing Applepay through Braintree and paypal by sdk then I am finding duplicate symbolic error.
if I am implementing both method through brain tree then I am finding Braintree.h file not find. when install the pod.
Is both implementation possible? if yes then please suggest.

Well need more details to say about error. But yes for payment option keep following in mind,
Payment option depends on what context(i.e what product) you are using it. If you have non-physical goods than InAppPurchase is recommended but if it is physical goods than you can use Payment gateways.
If you want to implement Applepay and Paypal both I suggest you to use both non-natively i.e. open a webview in the app and perform your payment outside the app. For Apple Pay you can use Stripe Api for that.
The reason behind is that Apple does not allow PayPal to use natively as recommended payment option is to use Applepay whereas Paypal does not include Apple pay. read this.
Also see, If you are using Stripe natively for payment then your payment confirmation is done outside the app(i.e. using your server api) after getting token of payment details.read this
So why use native implementation if your job is finally implementing outside the app. Just use webview implementation for both and perform your payment outside the app.

Related

Does Apple rejects app which has react native webview and third party payments in it

We are making web application and using paypal and stripe as payment gatweys for upgrading plan in the web application, now we are trying to make an iOS app using react native webview and using same payment gatways in it.
I have read somewhere that apple reject third parties payment gateway for subscriptions so we are not trying it
So, please help us out because we are confused and not taking any step yet
If your APP contains virtual goods, you must add Apple Pay;
Apple insists on using Apple Pay so they can, I think, have a percentage of the payments (20 or 30%).
If you offer a payment system other than Apple Pay, Apple may simply not validate the app on the stores.

iOS Swift: How to implement "Cash out" method from My App?

I want to build an app that distributes money to users after completing some tasks or after completing some game or something. Does anybody knows how to do "cashouts" from an app through paypal or by any other method.
However I did found a method with "paypal payout option". https://developer.paypal.com/docs/payouts/integrate/large-batch-payouts/#
I just want to know whether this would help me meet my requirement?
Using Paypal, its possible to do payments but sometimes its tricky with third party integration of batch payments, you can implement wallet in your app and use Apple pay to process the payments steady and easy to way to manage payments.
Ref Link: https://developer.apple.com/documentation/passkit
To send money between accounts: https://developer.apple.com/documentation/sirikit/payments

Braintree peer-to-peer iOS

I would like to include Paypal as a peer-to-peer options to pay back friends in my iPhone app.
However, when I search online for Paypal iOS, it says that I should use Braintree now.
It's pretty easy to use and include in the application.
But I don't know if and how Braintree handles peer-to-peer.
I suppose it should, since Paypal doesn't approve Adaptive Payments anymore.
Adaptive Payments is now a limited release product. It is restricted
to select partners for approved use cases and should not be used for
new integrations without guidance from PayPal.
So how to include peer-to-peer in my application now?
I came across your question, because I have the same issue. I was on the right track using Adaptive Payments, and then came back to work on it to see that lots of things had changed. Also, both the sender and the receiver have to sign up for PayPal to make peer-to-peer payments.
I switched to using Braintree - here's their iOS setup page.
From my understanding, you just have to manage payments between the two parties. The payer would pay you, and then you would in turn pay the payee.
For example, A --> Your App --> B.
I'm working on the same thing, so when I make some headway, I'll come back here. Otherwise, if this doesn't work, Stripe it is!
Good luck!
After some extensive googling, I managed to find the answer here : setting-payee
You need to add new "payee" object in "transactions" array along with "amount" and "description".

ios: Payment Integration Suggestion Needed

I am developing travel app. I just want to implement any ios Mobile payment libraries.
I heard that Apple allows only InApp purchases for the payment. Is there any other third party libraries available for the payment transaction.
I want to give services like payment through Credit Card,Debit Card,NetBanking.
Please suggest me best API to achieve these functionality.
You can find PayPal, Stripe, BrainTree (ack. by PayPal). Those are the easier to integrate with your app.
They both have a library that integrates and they are super easy to use. Nothing to do with InApp Purchases.

iOS - Integrating credit card payments

I'm aware that we can integrate in-app purchases with storekit. but i want to integrate payments using credit card. will apple allow to integrate such libraries? Are there any such libraries available where users can use their credit card for payment of products with in my app?
Depending on what users are purchasing*, you should be just fine accepting payments in your app. Instead of trying to incorporate some type of payment library into the app I would recommend using a payment API that offloads the work. Take a look at http://stripe.com/ for an example of an excellent payment system designed for ease of integration. Their API reference even mentions integration with iPhone apps.
*If you are trying to sell features or services of the app itself you will almost definitely be running afoul of Apple's guidelines, but based on the fact that you said "products" I am assuming this is not the case. In fact, while you must use the in-app purchase system for "content, functionality, or services in an app" you are specifically forbidden from using it for "physical goods or goods and services used outside of the application" (item 11.3 of Apple's App Store Review Guidelines).
Apple does allow not Apple's IAP in-app payments for goods not consumed in the phone (Digital content) as stated above.
See this example of an approved app that use external library for accepting credit cards in their app:
iStash
In my opinion Stripe is good solution but not the ideal for in-app as it is a web based solution and focuses on web experience.
If you want a true mobile in-app experience I suggest you check out PayPal library or my company, ZooZ, which accepts both PayPal and Credit Cards in one integration.
working project can be find here on github stripe example.
As an iOS dev you'd best have a good read through this. Specifically pertinent to you is section 11.2:
11.2 Apps utilizing a system other than the In App Purchase API (IAP) to purchase content, functionality, or services in an app will be rejected
They want the profit, and they get their cut if you use the IAP API. Hope that clears up any issues.
EDIT: I am assuming based on the wording of your question that the payment will unlock something transitory in the app. IAP are only appropriate when purchasing something digital. If what you are selling is physically tenable, then you shouldn't, and in fact are not allowed, to use the IAP API. In that case, something along the lines of Stripe or a web-based version of Paypal's API would work.
In support of David's answer, I would like to add that, using a payment API to accept payments for products/donation through your app would be ideal.
Apple Pay is now available (as of today) on iPhone 6 and 6 Plus, and active only in US.
But if you still want to add support in your app for devices that cannot use Apple Pay, Authorize.Net now has an iOS SDK which you can use to integrate and enable credit card payments.

Resources