App reviews, troubleshooting, and recommendations
1. I have successfully registered for One time purchase and subscriptions. After receiving the confirmationUrl, I clicked Approve. However, when I use the currentAppInstallation API to get the subscription type, including oneTimePurchases, I do not receive any results.
2. How can I know whether the subscription has been saved to Shopify when using APP_PURCHASES_ONE_TIME_UPDATE or APP_SUBSCRIPTIONS_UPDATE?
- confirmationUrl (image):
mutation { webhookSubscriptionCreate( topic: APP_SUBSCRIPTIONS_UPDATE webhookSubscription: { callbackUrl: "https://maker.ifttt.com/trigger/S_UPDATE/json/with/key/cdhdhsgwywKHij3S", format: JSON } ) { userErrors { field message } webhookSubscription { id } } }export const getSubscribedTypes = async (session: Session) => { const client = await getGraphqlClient(session); const response = await client.query<CurrentAppInstallations>({ data: ` query { currentAppInstallation { oneTimePurchases(first: 0) { edges { node { name status } } } } } `, }); console.log("response", response.body.data.currentAppInstallation.oneTimePurchases.edges); return response.body.data.currentAppInstallation.oneTimePurchases.edges.map( ({ node }) => { const { name } = node; console.log("node", name, node); return SUBSCRIPTION_TYPES.find( (type) => name.toLowerCase().indexOf(type) >= 0 ); } ); };
Thank you for help me!
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024