shopify-api-js icon indicating copy to clipboard operation
shopify-api-js copied to clipboard

Add billing support

Open paulomarg opened this issue 2 years ago • 0 comments

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)

paulomarg avatar Aug 09 '22 17:08 paulomarg