SwiftyStoreKit
SwiftyStoreKit copied to clipboard
Need example how to use discounts
Question
Hello I need example how to use discounts,
I can not get this to work
SwiftyStoreKit.purchaseProduct(productSK!, quantity: 1, atomically: true, applicationUsername: "", simulatesAskToBuyInSandbox: false, paymentDiscount: productSK?.discounts.first)
I want to give users 3 days trial for example and I setup everything on the server, but I really don't understand how to do that...
Thank you
I know that PaymentDiscount
needs an SKPaymentDiscount
to be initialized, but all examples I found uses a backend service to generate the parameters for SKPaymentDiscount
.
Were you be able to solve it without a backend service, by any chance?
i face the same question
I think it's impossible to buy a discount without signing it on backend