-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: moving product queries to adapter (#284)
* feat: product query to adapter * fix: types * fix: tables for tests were stale * fix: don't load from /dist * fix: send in a mock stripe provider if one isn't supplied * fix: payment provider is optional * feat(cb): move utils and basic pricing types etc out of commerce-next and into core these things aren't next specific and should be in core * fix: sort a package.json file * remove the `react-rsc` package * add sql to shiki list * don't log pinecone as error * don't log missing article as error * try to add role better * hotfix: handle refunds properly * hotfix: handle refunds properly * fix: redirect to discord after connecting * delete stripe adapter * fix: types * fix: tables for tests were stale * fix: don't load from /dist * fix: send in a mock stripe provider if one isn't supplied * fix: payment provider is optional * feat(cb): move utils and basic pricing types etc out of commerce-next and into core these things aren't next specific and should be in core * fix: sort a package.json file * remove the `react-rsc` package * package lock
- Loading branch information
Showing
137 changed files
with
1,103 additions
and
3,415 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
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
3 changes: 1 addition & 2 deletions
3
apps/astro-party/src/app/(content)/events/[slug]/_components/event-page-props.ts
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
3 changes: 1 addition & 2 deletions
3
apps/astro-party/src/app/(content)/workshops/_components/workshop-page-props.ts
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
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
88 changes: 0 additions & 88 deletions
88
apps/astro-party/src/coursebuilder/stripe-payment-adapter.ts
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import { StripePaymentAdapter } from '@/coursebuilder/stripe-payment-adapter' | ||
import { env } from '@/env.mjs' | ||
|
||
import StripeProvider from '@coursebuilder/core/providers/stripe' | ||
import StripeProvider, { | ||
StripePaymentAdapter, | ||
} from '@coursebuilder/core/providers/stripe' | ||
|
||
export const stripeProvider = StripeProvider({ | ||
errorRedirectUrl: `${env.COURSEBUILDER_URL}`, | ||
baseSuccessUrl: `${env.COURSEBUILDER_URL}`, | ||
cancelUrl: `${env.COURSEBUILDER_URL}`, | ||
paymentsAdapter: new StripePaymentAdapter(), | ||
paymentsAdapter: new StripePaymentAdapter({ | ||
stripeToken: env.STRIPE_SECRET_TOKEN, | ||
stripeWebhookSecret: env.STRIPE_WEBHOOK_SECRET, | ||
}), | ||
}) |
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
Oops, something went wrong.