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?