How to use Apple in app purchase with WKWebView - swift

I have an e-commerce App based on WebKit. I know apple will reject the app because it contains payments and we don't use there in app purchase.
so, my question is: is there any way to integrate in app purchase with the WebKit.
for example, once the user clicks on "buy" button, we may terminate the webView and presenting a view controller with payment details.

It looks like You don’t need in app purchase if you are offering consulting services.
3.1.3(d) Person-to-Person Services: If your app enables the purchase of real-time person-to-person services between two individuals (for example tutoring students, medical consultations, real estate tours, or fitness training), you may use purchase methods other than in-app purchase to collect those payments. One-to-few and one-to-many real-time services must use in-app purchase.
https://developer.apple.com/app-store/review/guidelines/#3.1.1

Related

how to i implement Apple in-app Subscriptions in Flutter

I want to provide auto or even Manuel renewable subscription in my Flutter App for iOS devices. Users can subscribe for 1 Month or 1 year.
Which one is the best? How to implement? Are these secure?
i tired Square Plugin; but got this response from Apple
Guideline 3.1.1 - Business - Payments - In-App Purchase
We noticed that your app offers a subscription with a mechanism other
than the in-app purchase API.
Specifically, subscription to view digital content within the app.
Next Steps
To resolve this issue, please revise your app to ensure that the
subscription for products used within the app is offered using the
in-app purchase API, with the exception of the content specified in
guideline 3.1.3 of the App Store Review Guidelines.
and
In-App Purchase
It may be appropriate to revise your app to use the in-app purchase
API to provide content purchasing functionality.
In-app purchase provides several benefits, including:
The flexibility to support a variety of business models.
Impacting your app ranking by consolidating your sales to one app rather than distributing them across multiple apps.
An effective marketing vehicle to drive additional sales of new content.
For information on in-app purchase, please refer to the following
documentation:
In-App Purchase for Developers
In-App Purchase Programming Guide
For step-by-step instructions on in-app purchase creation within App
Store Connect, refer to App Store Connect Help.
You can't use Square to sell digital goods in your app. Apple will only allow you to use StoreKit.
You can implement this directly, which may be annoying for flutter especially for subscriptions. You can also use an SDK like RevenueCat's Flutter SDK. (Full disclosure, I'm the CEO of RevenueCat).

In-app purchase outside of the appstore

I'm making an app for a certain museum. Some parts of the app should be restricted only for visitors purchasing tickets with a code printed on them.
This code can used to get access to the restricted parts of the app.
Is it something apple can reject?
There is no way apple can reject your app. It has changed strict guidelines of its iOS developer agreement to allow in-app subscriptions outside the App Store.
The App Store Review Guidelines states the following:
11.14 Apps can read or play approved content (specifically magazines, newspapers, books, audio, music, and video) that is subscribed to or purchased outside of the app, as long as there is no button or external link in the app to purchase the approved content. Apple will not receive any portion of the revenues for approved content that is subscribed to or purchased outside of the app.
Regarding Feb 2018 version of App Store Review Guidelines 3.1.1 this is not possible for now.
https://developer.apple.com/app-store/review/guidelines/#payments
3.1.1 In-App Purchase: If you want to unlock features or functionality within your app, (by way of example: subscriptions, in-game
currencies, game levels, access to premium content, or unlocking a
full version), you must use in-app purchase. Apps may use in-app
purchase currencies to enable customers to “tip” digital content
providers in the app. Apps and their metadata may not include buttons,
external links, or other calls to action that direct customers to
purchasing mechanisms other than in-app purchase.

implimentation of online payment in iphone Apps

I've to implement online payment method in my app for selling some products like gift items. Which method will i use?in App purchase or paypal? Does paypal implemented apps accepted in appstore? plz help me.
If they are actual items that one would use outside the app. Like a book, or a DVD, and not something for use in the app, you need to use paypal or something similar. In app purchases are only meant to purchase added functionality or extra content within your app. See also Apple documentation
Apps with other payment methods than in app purchase are accepted, as long as the purchase is not added functionality or content for your app.
To answer your question lets understand two basic things:
You use Paypal implementation only and only when you purchase physical goods like gift items as you mention.
You use In App Purchase when you need to provide/ unlock some feature inside your application itself.
In your case as you mention you need to have transactions for gift items you have only one option i.e use online transaction APIs like Paypal.
Regarding your second question, Yes Paypal integrated apps are accepted in App Store. There are plenty of such apps already in the App Store

Payment options in ios sdk without in app purchase and PayPal

I have a requirement in my new iPhone application, where I have to made payment like paisapay (Ebay) does. can I open a web page where user can fill information related to payment and server will handle payment? This Transaction will be in secure manner (In standard way). is it possible? Apple will approve app?
If you are using this means to unlock functionality in the app after payment, it will be rejected else it's okay.
As per app review guidelines
11.1 Apps that unlock or enable additional features or functionality with mechanisms other than the App Store will be rejected
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
11.13 Apps that link to external mechanisms for purchases or subscriptions to be used in the app, such as a “buy” button that goes
to a web site to purchase a digital book, will be rejected
For more reference please read the latest App store review guidelines at https://developer.apple.com/app-store/review/guidelines/
maybe this might help you
http://www.zooz.com/
FYI: In accordance with Apple’s App Store Guidelines, ZooZ can be used without limitation for purchasing physical goods or goods and services used outside of the application.

Appstore approval - Redeeming third-party gift codes through app

We have been asked by our client to develop an application that would enable redeeming gift codes that unlock additional content. The Application itself would not provide a way to purchase those codes.
It would work something like this -
1) a customer shops for groceries
2) when reciving the receipt/bill at the check-out the customer recieves a gift code.
3) entering this code in app unlocks additional premium content inaccessible otherwise.
The question is if this app would be approved by Apple?
In our opinion this model falls into the following point in Apple’s App Store Review Guidelines
11.14 Apps can read or play approved content (specifically magazines,
newspapers, books, audio, music, and video) that is subscribed to or
purchased outside of the app, as long as there is no button or
external link in the app to purchase the approved content. Apple will
not receive any portion of the revenues for approved content that is
subscribed to or purchased outside of the app
but on the other hand there's this point:
11.1 Apps that unlock or enable additional features or functionality
with mechanisms other than the App Store will be rejected
Have any of you know of application using similar business model?
We did something very similar for a major snack food company. The user entered EAN codes (the European equivalent of UPC codes) from the packaging to unlock different musical instruments from within the application. Apple did not reject the app and it is still for sale today.