How can I determine whether a customer has successfully completed payment or canceled after using the Billing API?

I plan to add a paid feature to the app (non-subscription payment), but after successfully calling the API, I can’t find out whether the customer has successfully completed the payment or canceled it using the order ID. Am I misunderstanding something here?

Hi @allen

I can’t find out whether the customer has successfully completed the payment or canceled it using the order ID.

Can you clarify what you mean by the customer exactly? I can read your post in two different ways, the customer being the actual merchant paying for this feature and you’re posting the charge over the Shopify Admin Billing API for apps.

Or I can read it as the merchant’s end customer and the order ID is related to their order.

Two different answers, so knowing that detail would be helpful.

Thank you for your reply ,Dylan.
I was referring to merchants as our customers who use our app and make payments to access its services. I resolved the issue yesterday, and I appreciate your help. I found that there were some discrepancies between the documentation description and the sample code in the Billing API. Following the sample code worked perfectly.

Nice! Glad you were able to find the issue and resolve it.

It might help to leave the documentation discrepancy here in this thread so others can find it if they come across this issue you’ve found.

Also, Shopify’s DevRel staff are also reading through these posts and can correct the docs.