how do I get consent for consumption request information

Generated on 10/15/2024

1 search

To get consent for consumption request information, you need to handle consumption request notifications using the App Store server APIs for In-App Purchase. Here's a brief overview of the process:

  1. Receive Notification: When a consumption request notification is received, it includes a new field called "consumption request reason," which indicates the customer's reason for requesting a refund.

  2. Process Notification: Verify and decode the notification payload to extract the transaction information.

  3. Build Consumption Request: Construct a consumption request object using the transaction information and the consumption request reason.

  4. Submit Preference: You can express a preference for granting or denying the refund based on your logic, which may consider the consumption request reason and other data.

  5. Send Consumption Information: Use the App Store server library to send the consumption information to the App Store server. This involves calling the send consumption information endpoint with the transaction ID and consumption request.

For more detailed guidance, you can refer to the session Explore App Store server APIs for In-App Purchase (11:18) where these steps are discussed.