If you want to cancel a subscription in the Sandbox environment, you can do it from the App Store settings.