shopify-api-js
shopify-api-js copied to clipboard
Add billing support
WHY are these changes introduced?
Apps might want to charge for their usage, and they can use the Admin API to request payment from the merchant.
WHAT is this pull request doing?
Adds a new Shopify.Billing.check
method which will check if there is a purchase and create one if not, based on the values in Shopify.Context.BILLING
.
Type of change
- [x] Minor: New feature (non-breaking change which adds functionality)
Checklist
- [x] I have added a changelog entry, prefixed by the type of change noted above
- [x] I have added/updated tests for this change
- [x] I have documented new APIs/updated the documentation for modified APIs (for public APIs)