├── .changeset ├── config.json ├── cool-dryers-pay.md └── moody-windows-sleep.md ├── .dependency-cruiser.cjs ├── .env.example ├── .env.test ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ ├── assign-pr.yml │ ├── auto-approve.yml │ ├── auto-update-canary.yml │ ├── check-licenses.yaml │ ├── main.yml │ └── prepare-release.yml ├── .gitignore ├── .graphqlrc.yml ├── .husky └── pre-commit ├── .lintstagedrc.js ├── .npmrc ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── CODEOWNERS ├── LICENSE ├── README.md ├── SECURITY.md ├── fix-coverage-report.cjs ├── global.d.ts ├── graphql ├── fragments │ ├── .gitkeep │ ├── Money.graphql │ ├── OrderOrCheckoutLines.graphql │ ├── OrderOrCheckoutSourceObject.graphql │ ├── PaymentGatewayInitializeSessionAddress.graphql │ ├── PaymentGatewayInitializeSessionEvent.graphql │ ├── PaymentGatewayRecipient.graphql │ ├── TransactionCancelationRequestedEvent.graphql │ ├── TransactionChargeRequestedEvent.graphql │ ├── TransactionInitializeSessionAddress.graphql │ ├── TransactionInitializeSessionEvent.graphql │ ├── TransactionProcessSessionEvent.graphql │ └── TransactionRefundRequestedEvent.graphql ├── mutations │ ├── .gitkeep │ ├── TransactionEventReport.graphql │ ├── UpdateAppMetadata.graphql │ └── UpdatePublicMetadata.graphql ├── queries │ ├── .gitkeep │ ├── FetchAppDetails.graphql │ ├── FetchChannels.graphql │ └── GetTransactionById.graphql ├── schema.graphql └── subscriptions │ ├── .gitkeep │ ├── PaymentGatewayInitializeSession.graphql │ ├── TransactionCancelationRequested.graphql │ ├── TransactionChargeRequested.graphql │ ├── TransactionInitializeSession.graphql │ ├── TransactionProcessSession.graphql │ └── TransactionRefundRequested.graphql ├── klarna-hpp.json ├── klarna-orders.json ├── klarna-payments.json ├── next-env.d.ts ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── public └── logo.png ├── sentry.client.config.js ├── sentry.edge.config.js ├── sentry.properties ├── sentry.server.config.js ├── src ├── __tests__ │ ├── apiTestsUtils.ts │ ├── pages │ │ └── index.test.tsx │ ├── polly.ts │ ├── test-env.mjs │ └── testAPL.ts ├── app-bridge-instance.ts ├── backend-lib │ └── api-route-utils.ts ├── deploy.ts ├── errors.ts ├── lib │ ├── api-response.ts │ ├── create-graphq-client.ts │ ├── env.mjs │ ├── gql-ast-to-string.ts │ ├── invariant.test.ts │ ├── invariant.ts │ ├── isEnv.ts │ ├── logger.ts │ ├── use-fetch.ts │ ├── utils.test.ts │ └── utils.ts ├── load-env.ts ├── migrations │ └── 1-add-issuing-pricinpal │ │ ├── FetchWebhookId.graphql │ │ ├── UpdateWebhook.graphql │ │ └── index.ts ├── modules │ ├── app-configuration │ │ ├── app-configuration.test.ts │ │ ├── app-configuration.ts │ │ ├── metadata-manager.ts │ │ └── utils.ts │ ├── jwt │ │ ├── check-token-expiration.test.ts │ │ ├── check-token-expiration.ts │ │ ├── check-token-offline.ts │ │ └── consts.ts │ ├── klarna │ │ ├── currencies.ts │ │ └── klarna-api.ts │ ├── payment-app-configuration │ │ ├── __tests__ │ │ │ ├── mocks.ts │ │ │ ├── payment-app-configuration-factory.ts │ │ │ ├── payment-app-configuration.test.ts │ │ │ └── utils.ts │ │ ├── app-config.ts │ │ ├── config-entry.ts │ │ ├── config-manager.test.ts │ │ ├── config-manager.ts │ │ ├── input-schemas.ts │ │ ├── mapping-manager.test.ts │ │ ├── mapping-manager.ts │ │ ├── payment-app-configuration-factory.ts │ │ ├── payment-app-configuration.router.ts │ │ ├── payment-app-configuration.ts │ │ └── utils.ts │ ├── trpc │ │ ├── protected-client-procedure.ts │ │ ├── trpc-app-router.ts │ │ ├── trpc-client.ts │ │ ├── trpc-context.ts │ │ ├── trpc-server.ts │ │ └── utils.ts │ ├── ui │ │ ├── atoms │ │ │ ├── Chip │ │ │ │ └── Chip.tsx │ │ │ ├── FileUploadInput │ │ │ │ ├── FileUploadInput.tsx │ │ │ │ └── fileUploadInput.css.ts │ │ │ ├── RoundedActionBox │ │ │ │ ├── RoundedActionBox.tsx │ │ │ │ └── roundedActionBox.css.ts │ │ │ ├── Skeleton │ │ │ │ ├── Skeleton.css.ts │ │ │ │ └── Skeleton.tsx │ │ │ ├── Table │ │ │ │ ├── Table.tsx │ │ │ │ └── table.css.ts │ │ │ ├── macaw-ui │ │ │ │ ├── FormFileUploadInput.tsx │ │ │ │ ├── FormInput.tsx │ │ │ │ ├── FormSelect.tsx │ │ │ │ └── RadioGroup.tsx │ │ │ └── modal.css.ts │ │ ├── molecules │ │ │ ├── Breadcrumbs │ │ │ │ ├── Breadcrumbs.css.ts │ │ │ │ └── Breadcrumbs.tsx │ │ │ ├── ConfigurationSummary │ │ │ │ └── ConfigurationSummary.tsx │ │ │ ├── ConfigurationsTable │ │ │ │ ├── ChannelToConfigurationTable │ │ │ │ │ ├── ChannelToConfigurationTable.tsx │ │ │ │ │ └── channelToConfigurationTable.css.ts │ │ │ │ ├── ConfigurationsTable.tsx │ │ │ │ └── configurationsTable.css.ts │ │ │ ├── ConfirmationButton │ │ │ │ └── ConfirmationButton.tsx │ │ │ └── FullPageError │ │ │ │ └── FullPageError.tsx │ │ ├── no-ssr-wrapper.tsx │ │ ├── organisms │ │ │ ├── AddConfigurationForm │ │ │ │ ├── AddConfigurationForm.tsx │ │ │ │ ├── AddCredentialsForm.tsx │ │ │ │ └── DeleteConfigurationForm.tsx │ │ │ ├── ChannelToConfigurationList │ │ │ │ └── ChannelToConfigurationList.tsx │ │ │ ├── ConfigurationList │ │ │ │ └── ConfigurationList.tsx │ │ │ └── GlobalErrorModal │ │ │ │ ├── modal.tsx │ │ │ │ └── state.ts │ │ ├── templates │ │ │ ├── AppLayout.tsx │ │ │ └── appLayout.css.ts │ │ ├── theme-synchronizer.test.tsx │ │ └── theme-synchronizer.tsx │ └── webhooks │ │ ├── __recordings__ │ │ └── TransactionInitializeSessionWebhookHandler_3934145280 │ │ │ └── p-https_3258310681 │ │ │ └── _2166136261 │ │ │ └── api-playground-klarna-com_1419490626 │ │ │ └── _2166136261 │ │ │ ├── Checkout_2840636407 │ │ │ └── should-work_3457346403 │ │ │ │ └── recording.har │ │ │ └── Order_2373458299 │ │ │ └── should-work_3457346403 │ │ │ └── recording.har │ │ ├── __snapshots__ │ │ └── transaction-initialize-session.test.ts.snap │ │ ├── __tests__ │ │ └── utils.ts │ │ ├── payment-gateway-initialize-session.ts │ │ ├── transaction-initialize-session.test.ts │ │ ├── transaction-initialize-session.ts │ │ ├── transaction-process-session.ts │ │ └── transaction-refund-requested.ts ├── pages │ ├── _app.tsx │ ├── _error.js │ ├── api │ │ ├── manifest.ts │ │ ├── register.ts │ │ ├── trpc │ │ │ └── [trpc].ts │ │ └── webhooks │ │ │ ├── klarna │ │ │ └── authorization.ts │ │ │ └── saleor │ │ │ ├── payment-gateway-initialize-session.ts │ │ │ ├── transaction-initialize-session.ts │ │ │ ├── transaction-process-session.ts │ │ │ └── transaction-refund-requested.ts │ ├── configurations │ │ ├── add.tsx │ │ ├── edit │ │ │ └── [configurationId].tsx │ │ └── list.tsx │ └── index.tsx ├── run-migrations.ts ├── saleor-app.ts ├── schemas │ ├── .gitignore │ ├── PaymentGatewayInitializeSession │ │ ├── PaymentGatewayInitializeSessionRequestData.schema.json │ │ └── PaymentGatewayInitializeSessionResponse.schema.json │ ├── TransactionCancelationRequested │ │ └── TransactionCancelationRequestedResponse.schema.json │ ├── TransactionChargeRequested │ │ └── TransactionChargeRequestedResponse.schema.json │ ├── TransactionInitializeSession │ │ └── TransactionInitializeSessionResponse.schema.json │ ├── TransactionProcessSession │ │ └── TransactionProcessSessionResponse.schema.json │ ├── TransactionRefundRequesed │ │ └── TransactionRefundRequestedResponse.schema.json │ ├── __snapshots__ │ │ └── compiler.test.ts.snap │ └── definitions.json ├── setup-tests.ts ├── styles │ └── global.css.ts └── types.ts ├── tsconfig.json ├── typings └── vanilla-extract__next-plugin │ └── index.d.ts └── vitest.config.ts /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.changeset/cool-dryers-pay.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.changeset/cool-dryers-pay.md -------------------------------------------------------------------------------- /.changeset/moody-windows-sleep.md: -------------------------------------------------------------------------------- 1 | --- 2 | "saleor-app-payment-klarna": minor 3 | --- 4 | 5 | Support full refunds 6 | -------------------------------------------------------------------------------- /.dependency-cruiser.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.dependency-cruiser.cjs -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.env.example -------------------------------------------------------------------------------- /.env.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.env.test -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.har linguist-generated=true 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/assign-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/assign-pr.yml -------------------------------------------------------------------------------- /.github/workflows/auto-approve.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/auto-approve.yml -------------------------------------------------------------------------------- /.github/workflows/auto-update-canary.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/auto-update-canary.yml -------------------------------------------------------------------------------- /.github/workflows/check-licenses.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/check-licenses.yaml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/prepare-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.github/workflows/prepare-release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.gitignore -------------------------------------------------------------------------------- /.graphqlrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.graphqlrc.yml -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | pnpm exec lint-staged 5 | -------------------------------------------------------------------------------- /.lintstagedrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.lintstagedrc.js -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | strict-peer-dependencies=false 2 | save-exact=true 3 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 20 -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/SECURITY.md -------------------------------------------------------------------------------- /fix-coverage-report.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/fix-coverage-report.cjs -------------------------------------------------------------------------------- /global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/global.d.ts -------------------------------------------------------------------------------- /graphql/fragments/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/fragments/Money.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/Money.graphql -------------------------------------------------------------------------------- /graphql/fragments/OrderOrCheckoutLines.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/OrderOrCheckoutLines.graphql -------------------------------------------------------------------------------- /graphql/fragments/OrderOrCheckoutSourceObject.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/OrderOrCheckoutSourceObject.graphql -------------------------------------------------------------------------------- /graphql/fragments/PaymentGatewayInitializeSessionAddress.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/PaymentGatewayInitializeSessionAddress.graphql -------------------------------------------------------------------------------- /graphql/fragments/PaymentGatewayInitializeSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/PaymentGatewayInitializeSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/PaymentGatewayRecipient.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/PaymentGatewayRecipient.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionCancelationRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionCancelationRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionChargeRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionChargeRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionInitializeSessionAddress.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionInitializeSessionAddress.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionInitializeSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionInitializeSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionProcessSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionProcessSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionRefundRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/fragments/TransactionRefundRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/mutations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/mutations/TransactionEventReport.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/mutations/TransactionEventReport.graphql -------------------------------------------------------------------------------- /graphql/mutations/UpdateAppMetadata.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/mutations/UpdateAppMetadata.graphql -------------------------------------------------------------------------------- /graphql/mutations/UpdatePublicMetadata.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/mutations/UpdatePublicMetadata.graphql -------------------------------------------------------------------------------- /graphql/queries/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/queries/FetchAppDetails.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/queries/FetchAppDetails.graphql -------------------------------------------------------------------------------- /graphql/queries/FetchChannels.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/queries/FetchChannels.graphql -------------------------------------------------------------------------------- /graphql/queries/GetTransactionById.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/queries/GetTransactionById.graphql -------------------------------------------------------------------------------- /graphql/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/schema.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/subscriptions/PaymentGatewayInitializeSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/PaymentGatewayInitializeSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionCancelationRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/TransactionCancelationRequested.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionChargeRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/TransactionChargeRequested.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionInitializeSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/TransactionInitializeSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionProcessSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/TransactionProcessSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionRefundRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/graphql/subscriptions/TransactionRefundRequested.graphql -------------------------------------------------------------------------------- /klarna-hpp.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/klarna-hpp.json -------------------------------------------------------------------------------- /klarna-orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/klarna-orders.json -------------------------------------------------------------------------------- /klarna-payments.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/klarna-payments.json -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/public/logo.png -------------------------------------------------------------------------------- /sentry.client.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/sentry.client.config.js -------------------------------------------------------------------------------- /sentry.edge.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/sentry.edge.config.js -------------------------------------------------------------------------------- /sentry.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/sentry.properties -------------------------------------------------------------------------------- /sentry.server.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/sentry.server.config.js -------------------------------------------------------------------------------- /src/__tests__/apiTestsUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/__tests__/apiTestsUtils.ts -------------------------------------------------------------------------------- /src/__tests__/pages/index.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/__tests__/pages/index.test.tsx -------------------------------------------------------------------------------- /src/__tests__/polly.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/__tests__/polly.ts -------------------------------------------------------------------------------- /src/__tests__/test-env.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/__tests__/test-env.mjs -------------------------------------------------------------------------------- /src/__tests__/testAPL.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/__tests__/testAPL.ts -------------------------------------------------------------------------------- /src/app-bridge-instance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/app-bridge-instance.ts -------------------------------------------------------------------------------- /src/backend-lib/api-route-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/backend-lib/api-route-utils.ts -------------------------------------------------------------------------------- /src/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/deploy.ts -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/lib/api-response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/api-response.ts -------------------------------------------------------------------------------- /src/lib/create-graphq-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/create-graphq-client.ts -------------------------------------------------------------------------------- /src/lib/env.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/env.mjs -------------------------------------------------------------------------------- /src/lib/gql-ast-to-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/gql-ast-to-string.ts -------------------------------------------------------------------------------- /src/lib/invariant.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/invariant.test.ts -------------------------------------------------------------------------------- /src/lib/invariant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/invariant.ts -------------------------------------------------------------------------------- /src/lib/isEnv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/isEnv.ts -------------------------------------------------------------------------------- /src/lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/logger.ts -------------------------------------------------------------------------------- /src/lib/use-fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/use-fetch.ts -------------------------------------------------------------------------------- /src/lib/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/utils.test.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/load-env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/load-env.ts -------------------------------------------------------------------------------- /src/migrations/1-add-issuing-pricinpal/FetchWebhookId.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/migrations/1-add-issuing-pricinpal/FetchWebhookId.graphql -------------------------------------------------------------------------------- /src/migrations/1-add-issuing-pricinpal/UpdateWebhook.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/migrations/1-add-issuing-pricinpal/UpdateWebhook.graphql -------------------------------------------------------------------------------- /src/migrations/1-add-issuing-pricinpal/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/migrations/1-add-issuing-pricinpal/index.ts -------------------------------------------------------------------------------- /src/modules/app-configuration/app-configuration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/app-configuration/app-configuration.test.ts -------------------------------------------------------------------------------- /src/modules/app-configuration/app-configuration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/app-configuration/app-configuration.ts -------------------------------------------------------------------------------- /src/modules/app-configuration/metadata-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/app-configuration/metadata-manager.ts -------------------------------------------------------------------------------- /src/modules/app-configuration/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/app-configuration/utils.ts -------------------------------------------------------------------------------- /src/modules/jwt/check-token-expiration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/jwt/check-token-expiration.test.ts -------------------------------------------------------------------------------- /src/modules/jwt/check-token-expiration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/jwt/check-token-expiration.ts -------------------------------------------------------------------------------- /src/modules/jwt/check-token-offline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/jwt/check-token-offline.ts -------------------------------------------------------------------------------- /src/modules/jwt/consts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/jwt/consts.ts -------------------------------------------------------------------------------- /src/modules/klarna/currencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/klarna/currencies.ts -------------------------------------------------------------------------------- /src/modules/klarna/klarna-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/klarna/klarna-api.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/__tests__/mocks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/__tests__/mocks.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/__tests__/payment-app-configuration-factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/__tests__/payment-app-configuration-factory.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/__tests__/payment-app-configuration.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/__tests__/payment-app-configuration.test.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/__tests__/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/__tests__/utils.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/app-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/app-config.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/config-entry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/config-entry.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/config-manager.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/config-manager.test.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/config-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/config-manager.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/input-schemas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/input-schemas.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/mapping-manager.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/mapping-manager.test.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/mapping-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/mapping-manager.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/payment-app-configuration-factory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/payment-app-configuration-factory.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/payment-app-configuration.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/payment-app-configuration.router.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/payment-app-configuration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/payment-app-configuration.ts -------------------------------------------------------------------------------- /src/modules/payment-app-configuration/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/payment-app-configuration/utils.ts -------------------------------------------------------------------------------- /src/modules/trpc/protected-client-procedure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/protected-client-procedure.ts -------------------------------------------------------------------------------- /src/modules/trpc/trpc-app-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/trpc-app-router.ts -------------------------------------------------------------------------------- /src/modules/trpc/trpc-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/trpc-client.ts -------------------------------------------------------------------------------- /src/modules/trpc/trpc-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/trpc-context.ts -------------------------------------------------------------------------------- /src/modules/trpc/trpc-server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/trpc-server.ts -------------------------------------------------------------------------------- /src/modules/trpc/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/trpc/utils.ts -------------------------------------------------------------------------------- /src/modules/ui/atoms/Chip/Chip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/Chip/Chip.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/FileUploadInput/FileUploadInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/FileUploadInput/FileUploadInput.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/FileUploadInput/fileUploadInput.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/FileUploadInput/fileUploadInput.css.ts -------------------------------------------------------------------------------- /src/modules/ui/atoms/RoundedActionBox/RoundedActionBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/RoundedActionBox/RoundedActionBox.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/RoundedActionBox/roundedActionBox.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/RoundedActionBox/roundedActionBox.css.ts -------------------------------------------------------------------------------- /src/modules/ui/atoms/Skeleton/Skeleton.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/Skeleton/Skeleton.css.ts -------------------------------------------------------------------------------- /src/modules/ui/atoms/Skeleton/Skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/Skeleton/Skeleton.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/Table/Table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/Table/Table.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/Table/table.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/Table/table.css.ts -------------------------------------------------------------------------------- /src/modules/ui/atoms/macaw-ui/FormFileUploadInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/macaw-ui/FormFileUploadInput.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/macaw-ui/FormInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/macaw-ui/FormInput.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/macaw-ui/FormSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/macaw-ui/FormSelect.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/macaw-ui/RadioGroup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/macaw-ui/RadioGroup.tsx -------------------------------------------------------------------------------- /src/modules/ui/atoms/modal.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/atoms/modal.css.ts -------------------------------------------------------------------------------- /src/modules/ui/molecules/Breadcrumbs/Breadcrumbs.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/Breadcrumbs/Breadcrumbs.css.ts -------------------------------------------------------------------------------- /src/modules/ui/molecules/Breadcrumbs/Breadcrumbs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/Breadcrumbs/Breadcrumbs.tsx -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfigurationSummary/ConfigurationSummary.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfigurationSummary/ConfigurationSummary.tsx -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfigurationsTable/ChannelToConfigurationTable/ChannelToConfigurationTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfigurationsTable/ChannelToConfigurationTable/ChannelToConfigurationTable.tsx -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfigurationsTable/ChannelToConfigurationTable/channelToConfigurationTable.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfigurationsTable/ChannelToConfigurationTable/channelToConfigurationTable.css.ts -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfigurationsTable/ConfigurationsTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfigurationsTable/ConfigurationsTable.tsx -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfigurationsTable/configurationsTable.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfigurationsTable/configurationsTable.css.ts -------------------------------------------------------------------------------- /src/modules/ui/molecules/ConfirmationButton/ConfirmationButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/ConfirmationButton/ConfirmationButton.tsx -------------------------------------------------------------------------------- /src/modules/ui/molecules/FullPageError/FullPageError.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/molecules/FullPageError/FullPageError.tsx -------------------------------------------------------------------------------- /src/modules/ui/no-ssr-wrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/no-ssr-wrapper.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/AddConfigurationForm/AddConfigurationForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/AddConfigurationForm/AddConfigurationForm.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/AddConfigurationForm/AddCredentialsForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/AddConfigurationForm/AddCredentialsForm.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/AddConfigurationForm/DeleteConfigurationForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/AddConfigurationForm/DeleteConfigurationForm.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/ChannelToConfigurationList/ChannelToConfigurationList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/ChannelToConfigurationList/ChannelToConfigurationList.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/ConfigurationList/ConfigurationList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/ConfigurationList/ConfigurationList.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/GlobalErrorModal/modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/GlobalErrorModal/modal.tsx -------------------------------------------------------------------------------- /src/modules/ui/organisms/GlobalErrorModal/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/organisms/GlobalErrorModal/state.ts -------------------------------------------------------------------------------- /src/modules/ui/templates/AppLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/templates/AppLayout.tsx -------------------------------------------------------------------------------- /src/modules/ui/templates/appLayout.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/templates/appLayout.css.ts -------------------------------------------------------------------------------- /src/modules/ui/theme-synchronizer.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/theme-synchronizer.test.tsx -------------------------------------------------------------------------------- /src/modules/ui/theme-synchronizer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/ui/theme-synchronizer.tsx -------------------------------------------------------------------------------- /src/modules/webhooks/__recordings__/TransactionInitializeSessionWebhookHandler_3934145280/p-https_3258310681/_2166136261/api-playground-klarna-com_1419490626/_2166136261/Checkout_2840636407/should-work_3457346403/recording.har: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/__recordings__/TransactionInitializeSessionWebhookHandler_3934145280/p-https_3258310681/_2166136261/api-playground-klarna-com_1419490626/_2166136261/Checkout_2840636407/should-work_3457346403/recording.har -------------------------------------------------------------------------------- /src/modules/webhooks/__recordings__/TransactionInitializeSessionWebhookHandler_3934145280/p-https_3258310681/_2166136261/api-playground-klarna-com_1419490626/_2166136261/Order_2373458299/should-work_3457346403/recording.har: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/__recordings__/TransactionInitializeSessionWebhookHandler_3934145280/p-https_3258310681/_2166136261/api-playground-klarna-com_1419490626/_2166136261/Order_2373458299/should-work_3457346403/recording.har -------------------------------------------------------------------------------- /src/modules/webhooks/__snapshots__/transaction-initialize-session.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/__snapshots__/transaction-initialize-session.test.ts.snap -------------------------------------------------------------------------------- /src/modules/webhooks/__tests__/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/__tests__/utils.ts -------------------------------------------------------------------------------- /src/modules/webhooks/payment-gateway-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/payment-gateway-initialize-session.ts -------------------------------------------------------------------------------- /src/modules/webhooks/transaction-initialize-session.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/transaction-initialize-session.test.ts -------------------------------------------------------------------------------- /src/modules/webhooks/transaction-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/transaction-initialize-session.ts -------------------------------------------------------------------------------- /src/modules/webhooks/transaction-process-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/transaction-process-session.ts -------------------------------------------------------------------------------- /src/modules/webhooks/transaction-refund-requested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/modules/webhooks/transaction-refund-requested.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/_error.js -------------------------------------------------------------------------------- /src/pages/api/manifest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/manifest.ts -------------------------------------------------------------------------------- /src/pages/api/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/register.ts -------------------------------------------------------------------------------- /src/pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/klarna/authorization.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/webhooks/klarna/authorization.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/saleor/payment-gateway-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/webhooks/saleor/payment-gateway-initialize-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/saleor/transaction-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/webhooks/saleor/transaction-initialize-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/saleor/transaction-process-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/webhooks/saleor/transaction-process-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/saleor/transaction-refund-requested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/api/webhooks/saleor/transaction-refund-requested.ts -------------------------------------------------------------------------------- /src/pages/configurations/add.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/configurations/add.tsx -------------------------------------------------------------------------------- /src/pages/configurations/edit/[configurationId].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/configurations/edit/[configurationId].tsx -------------------------------------------------------------------------------- /src/pages/configurations/list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/configurations/list.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/run-migrations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/run-migrations.ts -------------------------------------------------------------------------------- /src/saleor-app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/saleor-app.ts -------------------------------------------------------------------------------- /src/schemas/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/.gitignore -------------------------------------------------------------------------------- /src/schemas/PaymentGatewayInitializeSession/PaymentGatewayInitializeSessionRequestData.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/PaymentGatewayInitializeSession/PaymentGatewayInitializeSessionRequestData.schema.json -------------------------------------------------------------------------------- /src/schemas/PaymentGatewayInitializeSession/PaymentGatewayInitializeSessionResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/PaymentGatewayInitializeSession/PaymentGatewayInitializeSessionResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/TransactionCancelationRequested/TransactionCancelationRequestedResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/TransactionCancelationRequested/TransactionCancelationRequestedResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/TransactionChargeRequested/TransactionChargeRequestedResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/TransactionChargeRequested/TransactionChargeRequestedResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/TransactionInitializeSession/TransactionInitializeSessionResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/TransactionInitializeSession/TransactionInitializeSessionResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/TransactionProcessSession/TransactionProcessSessionResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/TransactionProcessSession/TransactionProcessSessionResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/TransactionRefundRequesed/TransactionRefundRequestedResponse.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/TransactionRefundRequesed/TransactionRefundRequestedResponse.schema.json -------------------------------------------------------------------------------- /src/schemas/__snapshots__/compiler.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/__snapshots__/compiler.test.ts.snap -------------------------------------------------------------------------------- /src/schemas/definitions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/schemas/definitions.json -------------------------------------------------------------------------------- /src/setup-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/setup-tests.ts -------------------------------------------------------------------------------- /src/styles/global.css.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/styles/global.css.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/src/types.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typings/vanilla-extract__next-plugin/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/typings/vanilla-extract__next-plugin/index.d.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/saleor-app-payment-klarna/HEAD/vitest.config.ts --------------------------------------------------------------------------------