Create a custom Shopify app through the Shopify Dev Dashboard, connect it to the merchant's XPay configuration, and verify that Shopify orders map to XPay.
Before you begin
You need:
- Access to the Shopify Dev Dashboard.
- The merchant's
myshopify.comstore URL. - Permission to configure Shopify app distribution.
- Access to the merchant's Shopify app details in the XPay Merchant Portal.
Create the app
- Sign in to the Shopify Partner or Dev Dashboard.
- Open Apps.
- Select Create app.
- Enter an app name and create the app.
Configure the app
Set the app configuration to:
Save the configuration, create an app version, and release it.
Configure custom distribution
- Open Distribution.
- Select Custom app distribution.
- Add the merchant's Shopify store URL, such as
merchant-store.myshopify.com. - Save the distribution settings.
Add the credentials to XPay
- In the Shopify app, open App home → Settings → Credentials.
- Copy the client ID and client secret.
- In the XPay Merchant Portal, open Settings → Store Info → Shopify App Details.
- Select Dev Dashboard as the custom-app credential type.
- Enter the client ID and client secret.
- Submit the configuration.
⚠️ The Shopify client secret grants access to the custom app. Store it securely and never place it in storefront code, screenshots, or public repositories.
Install and verify
Add the client ID and secret to XPay before installing the custom app on the merchant store. After installation:
- Place a test Shopify order.
- Open the corresponding record in XPay.
- Confirm that the Shopify order ID is mapped correctly.
- Verify the payment state before enabling the integration for customers.
Next steps
- Rename the credit-card payment method.
- Use the existing XPay Go-Live Guide for production readiness.