-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding ability to cancel an order, if cancelled, and stripe subscription, cancel subscription * correct package, only do on cancel * update checkout session in event it is expired * ignore no rows error on expired check * adding brave talk premium sku (single-use) for production * fixing 500s on checkout session renewal, and cancel order * restrict cancel endpoint to authorized, move business logic to service * Update cmd/macaroon/brave-talk/premium_prod.yaml Co-authored-by: Albert Wang <amwang217@gmail.com> Co-authored-by: Albert Wang <amwang217@gmail.com>
- Loading branch information
1 parent
5af0c39
commit f3b81bc
Showing
6 changed files
with
196 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tokens: | ||
id: "brave-talk-premium-prod sku token v1" | ||
version: 1 | ||
location: "talk.brave.com" | ||
first_party_caveats: | ||
sku: "brave-talk-premium-prod" | ||
price: 7.00 | ||
currency: "USD" | ||
description: "Premium access to Brave Talk" | ||
credential_type: "single-use" | ||
allowed_payment_methods: "stripe" | ||
metadata: >- | ||
{ | ||
"stripe_product_id": "prod_Jw4zQxdHkpxSOe", | ||
"stripe_item_id": "price_1JICpEBSm1mtrN9nwCKvpYQ4", | ||
"stripe_success_uri": "https://account.brave.com/account/?intent=provision", | ||
"stripe_cancel_uri": "https://account.brave.com/plans/?intent=checkout" | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters