FEATURE: Give option to repurchase products multiple times (#46)

Feature requested here: https://meta.discourse.org/t/subscriptions-allow-users-to-purchase-one-time-products-multiple-times/173732/

There may be cases where a site admin wants to allow the repurchasing of a product. This implements the functionality by adding a repurchaseable toggle in the admin screen when creating a product. This saves an attribute to the Stripe product metadata.

When a user has already purchased an item with this toggle enabled, they will be able to purchase it again when browsing to `/s`.
This commit is contained in:
Justin DiRose
2021-01-31 14:17:44 -06:00
committed by GitHub
parent 3f8fca3246
commit 072b558d40
11 changed files with 80 additions and 33 deletions
@@ -0,0 +1,5 @@
import Component from "@ember/component";
export default Component.extend({
classNames: ["product"],
});