Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 383 Bytes

USAGE.md

File metadata and controls

8 lines (5 loc) · 383 Bytes

Usage

Creating a paid API

Accept many payment types

  • In your canister, you need to decide which payment types you wish to accept. In this example a PAYMENT_GUARD is defined that accepts a variety of payment options.
  • In the API methods, you need to deduct payment before doing work.