Share
Explore

How to get Apple Server to Server Configuration Key

Setting up Apple Server-to-Server Notifications for Shinara
Shinara supports Apple server-to-server notifications to enhance the speed and accuracy of webhook deliveries, integration updates, and real-time data for analytics. Here's a detailed guide on how to set this up:

Step 1: Obtain the Shinara Notification URL

Log in to your Shinara dashboard.
Navigate to "Integrations" in the left sidebar.
Click on "In-App Purchase Webhook" in the submenu.
Select "Apple Server-to-Server Notification Settings" tab.
Locate the "Webhook" field. This is the URL you'll need to provide to Apple.

Step 2: Configure App Store Connect

Open a new tab and log in to your App Store Connect account.
Select your app from the dashboard.
In the left sidebar, click on "App Information".
Scroll down to the "App Store Server Notifications" section.
You'll see two fields: "Production Server URL" and "Sandbox Server URL".
Copy the entire URL from the Shinara dashboard and paste it into both of these fields.
For "Notification Type", you can choose either Version 1 or Version 2. We recommend Version 2 for advanced features like auto-detecting price changes.
Click "Save" at the bottom of the page.

Step 3: (Optional) Set Up Notification Forwarding

If you want to process Apple's server-to-server notifications on your own server while still utilizing Shinara's features, follow these steps:
Set up an HTTPS endpoint on your server to receive the Apple notifications.
In App Store Connect, enter your server's URL.
On your server, implement notification forwarding logic:
// Example Node.js implementation using Express
app.post('/apple-notifications', async (req, res) => {
try {
// Forward the notification to Shinara
const response = await fetch('YOUR_SHINARA_WEBHOOK_URL', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
// Forward all original headers from Apple
...req.headers
},
body: JSON.stringify(req.body)
});

// Process the notification for your own needs
await processNotificationLocally(req.body);

// Return 200 to Apple only after successful forwarding
res.status(200).send('OK');
} catch (error) {
console.error('Forwarding failed:', error);
res.status(500).send('Error forwarding notification');
}
});

Troubleshooting

If you encounter issues:
Double-check that the URL is correctly copied from Shinara to App Store Connect without any typos or extra spaces.
Verify that your app has active in-app purchases or subscriptions.
Check the "Notification History" in App Store Connect to see if notifications are being sent.

Testing the Setup

To test if notifications are working:
Make a sandbox purchase in your app.
Check the Shinara dashboard for updated purchase information.
If you've set up forwarding, verify that your server receives the notification.

Support and Contact Information

For any questions or concerns, please don't hesitate to reach out to our dedicated support team:
Email: Support Hours: Monday to Friday, 9 AM to 5 PM EST
We're committed to ensuring a smooth and rewarding experience for all our affiliates. Thank you for choosing Shinara as your affiliate partner!
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.