Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider extending the interface that can implement subscription promotional offer. #519

Closed
4 tasks
YinChangDao opened this issue Feb 13, 2020 · 1 comment
Labels

Comments

@YinChangDao
Copy link

Platform

  • iOS

In app purchase type

  • Auto-Renewable Subscription

Environment

  • Sandbox
  • Production

Version

ℹ 0.15.0

Related issues

ℹ nil

Report

Issue summary

ℹ Apple introducing subscription promotional offer in iOS 12.2, it would help us winning back lapsed subscribers or retaining current subscribers, but SwiftyStoreKit hasn't support it yet. I can't pass a parameter with the type of SKPaymentDiscount to the api purchaseProduct(_ productId: String, quantity: Int = 1, atomically: Bool = true, applicationUsername: String = "", simulatesAskToBuyInSandbox: Bool = false, completion: @escaping (PurchaseResult) -> Void). I must realize another purchase process api via StoreKit to implement subscription promotional offer instead of apply the api in SwiftyStoreKit, It is weird.

What did you expect to happen

ℹ Please append the parameter paymentDiscount in purchaseProduct(_ productId:String, ... api and make subscription promotional offer available.

@Sam-Spencer
Copy link
Collaborator

Thank you for your contribution! This enhancement was previously requested in issue #458, and fixed in PR #499. Closing as a duplicate -> stay tuned at the aforementioned issues for updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants