Liquid、JavaScript、主题、销售渠道。
I am using the recurringapplicationcharge, and the charge is deducted every 30 days. When the time is 30 days and the charge is automatically deducted, how do I get the notice of whether the deduction is successful, hook?
Is that it?
subscription_ billing_ attempts/challenged,
subscription_ billing_ attempts/failure,
subscription_ billing_ attempts/success
Why does this topic not exist when I add this hook
已解决! 转到解答。
Array
(
[json] => Array
(
[webhook] => Array
(
[topic] => subscription_billing_attempts/success
[address] => https://******/v1/hook/billingsu
)
)
)
Array
(
[code] => 422
[msg] => Client error: `POST https://*****.myshopify.com/admin/api/2021-10/webhooks.json` resulted in a `422 Unprocessable Entity` response:
{"errors":{"topic":["Invalid topic specified: subscription_billing_attempts\/success. Does it exist? Is there a missing (truncated...)
[data] => Array
(
)
)
why?
I don't really understand your issue.
You can create a webhook to be notified when there was a successful or failed billing:
https://shopify.dev/api/admin-rest/2021-10/resources/webhook
BillingAttempt
subscription_billing_attempts/challenged, subscription_billing_attempts/failure, subscription_billing_attempts/success
Array
(
[json] => Array
(
[webhook] => Array
(
[topic] => subscription_billing_attempts/success
[address] => https://******/v1/hook/billingsu
)
)
)
Array
(
[code] => 422
[msg] => Client error: `POST https://*****.myshopify.com/admin/api/2021-10/webhooks.json` resulted in a `422 Unprocessable Entity` response:
{"errors":{"topic":["Invalid topic specified: subscription_billing_attempts\/success. Does it exist? Is there a missing (truncated...)
[data] => Array
(
)
)
why?
了解如何借助 Shopify Academy 的学习路径和验证技能徽章在全球市场拓展 Shopify 业务拓展全球业务。此学习路径经过精心策划,提供免费课程,目的是帮助您探...
By Shopify Feb 7, 2025利用 Shopify Academy 的学习路径 B2B on Shopify:启动和自定义扩大业务范围,开展批发销售业务。以下三组免费课程专门帮助您在 Shopify 商店...
By Shopify Jan 31, 2025在当今竞争激烈的电商市场中,视觉效果是吸引和留住客户的关键因素之一。高质量的图片不仅能提升店铺的专业形象,还能显著提高转化率和用户体验。研究表明,优质的产品图片可以增...
By Vikki Sep 15, 2024