Skip to content
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

feat: move Payment Options over to commerce-server #1463

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,8 +1,10 @@
import SkillRecordings, {
type SkillRecordingsOptions,
} from '@skillrecordings/skill-api'
import {
defaultPaymentOptions,
StripeProvider,
} from '@skillrecordings/skill-api'
} from '@skillrecordings/commerce-server'
import {nextAuthOptions} from '../auth/[...nextauth]'

const paymentOptions = defaultPaymentOptions({
Expand Down
1 change: 1 addition & 0 deletions packages/commerce-server/src/index.ts
Expand Up @@ -9,3 +9,4 @@ export * from './props-for-commerce'
export * from './record-new-purchase'
export * from './determine-purchase-type'
export * from './get-valid-purchases'
export * from './providers/default-payment-options'
2 changes: 1 addition & 1 deletion packages/skill-api/src/next/index.ts
Expand Up @@ -9,7 +9,7 @@ import {NextAuthOptions} from 'next-auth'
import {parseBody} from 'next/dist/server/api-utils/node/parse-body'
import {setCookie} from './utils'
import {SkillRecordingsAction, SkillRecordingsProvider} from '../router'
import {PaymentOptions} from '../server/default-payment-options'
import {PaymentOptions} from '@skillrecordings/commerce-server'

/** Extract the host from the environment */
export function detectHost(forwardedHost: any) {
Expand Down
1 change: 0 additions & 1 deletion packages/skill-api/src/server/index.ts
Expand Up @@ -3,4 +3,3 @@ export * from './skill-next-auth-prisma-adapter'
export * from './send-verification-request'
export * from './default-next-auth-options'
export * from './send-server-email'
export * from './default-payment-options'