Skip to content

Commit

Permalink
feat: move Payment Options over to commerce-server
Browse files Browse the repository at this point in the history
  • Loading branch information
jbranchaud authored and kodiakhq[bot] committed Mar 21, 2024
1 parent 784d054 commit e535eb7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
@@ -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'

0 comments on commit e535eb7

Please sign in to comment.