stripe_coupon object represents the complete set of data required
to manage coupons at Stripe. A coupon has either a
percent_off or an
currency. If you set an
amount will be subtracted from any invoice’s subtotal. For example, an invoice
with a subtotal of $100 will have a final total of $0 if a coupon with an
amount_off of 20000 is applied to it and an invoice with a subtotal of
$300 will have a final total of $100 if a coupon with an
20000 is applied to it.
An R6 Class object
create: Creates a coupon on Stripe.
retrieve: Retrieves coupon information from Stripe based on the
id passed to the method.
update: Updates coupon metadata at Stripe.
delete: Deletes the coupon with the provided id at Stripe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.