declinePriceIncreaseForTransaction(identifier:)
Simulates a user canceling an auto-renewable subscription by disabling auto-renew.
Declaration
func declinePriceIncreaseForTransaction(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 declinePriceIncreaseForTransaction(identifier:) to simulate a user canceling the subscription. Specifically, this method disables auto-renew and removes the subscription’s pending price increase status. The subscription expires at the end of the billing period in the testing environment.