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
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?
Check if your app has permissions for billing
yes. we have found the problem. now we are contact the team
thanks for your help
thanks for your reply we will study your comminents
thanks again for your help