- 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.
PAYMENT_GUARD
is defined that accepts a variety of payment options.