-
Notifications
You must be signed in to change notification settings - Fork 501
one time payments #865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,360
−157
Merged
one time payments #865
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
a30a864
type fix
BilalG1 d6397fa
custom customer type
BilalG1 5e5c0ae
merge dev
BilalG1 d0e4e09
small fixes
BilalG1 1018ee5
fix test
BilalG1 553ffe0
fix issues
BilalG1 7e95b6b
revert import changes
BilalG1 da6f000
fix test
BilalG1 4b79dd1
offer and item pages, edits, deletes
BilalG1 4c546b8
fix lint
BilalG1 c22bf3c
small fixes
BilalG1 2b19be0
fix copy
BilalG1 03c06a2
payments test mode
BilalG1 19d1d52
revoke codes
BilalG1 582f876
fix test
BilalG1 8626012
stackable purchases
BilalG1 d5f0dd4
server only offers
BilalG1 82ff799
seed extra-admins, small fixes
BilalG1 eb7ee91
wip
BilalG1 1a3b465
updated schema
N2D4 40ff247
Include by default price
N2D4 4645d09
Combine subscriptions from DB and include-by-default
N2D4 3488427
wip updated schema
BilalG1 101c98a
schema fixes, ledger transactions
BilalG1 b27c7c8
merge dev
BilalG1 e537f6b
type fixes
BilalG1 2198b63
Separate Stripe account ID from schema
N2D4 9a5ac32
Merge branch 'payments-tx-ledger-algo' into payments-separate-stripe-…
N2D4 54bdf9a
Update AGENTS.md
N2D4 d10452d
Make CLAUDE.md an alias
N2D4 5e2b22a
fix tests and getSubscriptions
BilalG1 90c0b24
Merge remote-tracking branch 'origin/payments-separate-stripe-account…
BilalG1 dfdd231
type fix
BilalG1 8545274
fix stripe account info
BilalG1 59d375b
fix tests
BilalG1 4b7f823
fix tests
BilalG1 ee93553
fix tests
BilalG1 6e1a689
Merge dev into payments-tx-ledger-algo
N2D4 0420aa3
fix tests
BilalG1 f01efbb
Merge branch 'payments-tx-ledger-algo' of https://github.com/stack-au…
BilalG1 b36ed7e
fix createCheckoutUrl
BilalG1 30814f0
one time payments
BilalG1 cbcc983
remove export
BilalG1 157c024
payments fixes
BilalG1 7b2ac57
validate-code extra info
BilalG1 11bf97e
merge
BilalG1 c878b3f
Merge branch 'dev' into payments-tx-ledger-algo
N2D4 b4c0d83
one-time tests
BilalG1 dc37b10
fix test
BilalG1 2645635
fix conflicts
BilalG1 27a4676
schema
BilalG1 ac9d275
Merge remote-tracking branch 'origin/payments-tx-ledger-algo' into on…
BilalG1 80d5cde
one time fixes
BilalG1 6228f15
merge dev
BilalG1 e549167
remove as any
BilalG1 bc3cd06
Merge dev into one-time-payments
N2D4 0598572
merge dev
BilalG1 82338d5
Merge branch 'dev' into one-time-payments
BilalG1 88c6fc9
Merge dev into one-time-payments
N2D4 5e0765e
Merge dev into one-time-payments
N2D4 52fe8eb
Merge dev into one-time-payments
N2D4 0fe607f
Merge dev into one-time-payments
N2D4 04f9171
Merge dev into one-time-payments
N2D4 1f3f20e
Merge dev into one-time-payments
N2D4 0c58329
Merge dev into one-time-payments
N2D4 2ff6beb
one time payment fixes
BilalG1 e49c560
Merge remote-tracking branch 'origin/dev' into one-time-payments
BilalG1 f276960
migration fix
BilalG1 e694385
safe migration
BilalG1 8180ced
fix schema
BilalG1 7678d50
add otp double webhook handling and test
BilalG1 4446799
Merge branch 'dev' into one-time-payments
BilalG1 c1fd6ea
stripe proxy and more tests
BilalG1 726ebe2
proxy stripe
BilalG1 2d3cb35
Merge branch 'dev' into one-time-payments
BilalG1 834fb3c
Merge branch 'dev' into one-time-payments
BilalG1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
apps/backend/prisma/migrations/20250911230246_one_time_purchase/migration.sql
This file contains hidden or 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,21 @@ | ||
| -- CreateEnum | ||
| ALTER TYPE "SubscriptionCreationSource" RENAME TO "PurchaseCreationSource"; | ||
|
|
||
| -- CreateTable | ||
| CREATE TABLE "OneTimePurchase" ( | ||
| "id" UUID NOT NULL, | ||
| "tenancyId" UUID NOT NULL, | ||
| "customerId" TEXT NOT NULL, | ||
| "customerType" "CustomerType" NOT NULL, | ||
| "offerId" TEXT, | ||
| "offer" JSONB NOT NULL, | ||
| "quantity" INTEGER NOT NULL, | ||
| "stripePaymentIntentId" TEXT, | ||
| "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| "creationSource" "PurchaseCreationSource" NOT NULL, | ||
|
|
||
| CONSTRAINT "OneTimePurchase_pkey" PRIMARY KEY ("tenancyId","id") | ||
| ); | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "OneTimePurchase_tenancyId_stripePaymentIntentId_key" ON "OneTimePurchase"("tenancyId", "stripePaymentIntentId"); |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.