consentToPriceIncreaseForTransaction(identifier:)
Simulates a user consenting to a price increase for an auto-renewable subscription.
Declaration
func consentToPriceIncreaseForTransaction(identifier: Int) throwsParameters
- identifier:
The transaction Identifier of the auto-renewable subscription that has a pending price increase.
Discussion
To test how your app handles the price increase consent flow for auto-renewable subscriptions, first call requestPriceIncreaseConsentForTransaction(identifier:).
Call the consentToPriceIncreaseForTransaction(identifier:) method to simulate a user consenting to the price increase. This method removes the subscription’s pending price increase status. The subscription renews at the next billing period.