how to i implement Apple in-app Subscriptions in Flutter - 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).

Related

Why can't my app be published using paypal integration

I developed an app with ionic library and use paypal integration from ionic framework. I uploaded my app at google play and everything went fine. When I published my app in app store my app was rejected with this reason :
We noticed that your app or its metadata enables the purchase of
content, services, or functionality in the app by means other than the
in-app purchase API, which is not appropriate for the App Store.
Does anyone know if the problem is that I use paypal library or that apple doesn't control my transactions so apple can't take some money?
Other methods are allowed, but only under certain conditions:
3.1.5(a) Goods and Services Outside of the App: If your app enables people to purchase goods or services that will be consumed outside of the app, you must use purchase methods other than in-app purchase to collect those payments, such as Apple Pay or traditional credit card entry.
You can read all the app story review guidelines at https://developer.apple.com/app-store/review/guidelines/#payments

Promotion code for iOS in-app purchases

I'd like to offer 100% discounts via one time use coupons on IAPs. Can it be done? And more than just 100 of them, which I think is the number of coupons Apple allows. My goal is to generate future IAPs by introducing players who don't use them to try them.
From what I've been able to tell, it seems that Apple doesn't officially allow IAP promotion codes.
From: https://developer.apple.com/app-store/review/guidelines/#purchasing-currencies
1.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
See also
1) https://forums.coronalabs.com/topic/37264-rejected-by-apple-cause-of-promo-code-custom-solution/
2) How to create a promotion code for iOS in-app purchases
If you still want to power ahead and do this, one way is a URL scheme. Briefly, you enable your app to respond to something like: myAppName://... when that URL is present in an email being read using the Apple Mail app, or when that URL is typed into Safari. Then, your app examines the URL parameters and pulls out, say a code identifying the type of comped purchase (e.g., perhaps consulting a back-end server), and makes the comped purchase available to the user.
See also:
A) Free iOS in app purchase for some users/devices
B) Rewarding iOS app beta testers with in app purchase?
C) iOS In-App Purchase, sending to another account (gifting?)
D) Providing a discount code for an iOS in-app-purchase

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.

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.

Xcode iPhone Development - ecommerce app

I've read Apple don't allow you to create your own e-commerce iPhone app and integrate into Paypal, some payment gateway and you should only use/ go through the app store using the storekit. How do other companies such as Amazon do it?
Any links to any extra reading would be great,
Thanks in advance.
You must use storekit if your products are all virtual. But if the products are physical (the case with Amazon) then you must not use in app purchase (storekit) and must process payment on your own. Check In App Purchase Programming Guide for the details.