├── .env.example ├── .eslintrc ├── .github ├── scripts │ └── open-prod-pr.mjs └── workflows │ ├── assign-pr.yml │ ├── main.yml │ └── manage-example-branches.yml ├── .gitignore ├── .graphqlrc.yml ├── .npmrc ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── CODEOWNERS ├── Dockerfile.dev ├── LICENSE ├── README.md ├── docs ├── 1_checkout.jpeg └── 2_event_reporter.jpeg ├── graphql ├── fragments │ ├── .gitkeep │ ├── BasicWebhookMetadata.graphql │ ├── Money.graphql │ ├── PaymentGatewayInitializeSessionEvent.graphql │ ├── PaymentGatewayRecipient.graphql │ ├── SyncWebhookTransaction.graphql │ ├── Transaction.graphql │ ├── TransactionCancelRequestedEvent.graphql │ ├── TransactionChargeRequestedEvent.graphql │ ├── TransactionInitializeSessionEvent.graphql │ ├── TransactionProcessSessionEvent.graphql │ └── TransactionRefundRequestedEvent.graphql ├── mutations │ ├── .gitkeep │ ├── CompleteCheckout.graphql │ ├── CreateCheckout.graphql │ ├── InitializeTransaction.graphql │ ├── TransactionEventReport.graphql │ └── UpdateDelivery.graphql ├── queries │ ├── .gitkeep │ ├── ChannelsList.graphql │ ├── FetchAppDetails.graphql │ ├── ProductList.graphql │ ├── TransactionDetailsViaId.graphql │ └── TransactionDetailsViaPsp.graphql ├── schema.graphql └── subscriptions │ ├── .gitkeep │ ├── PaymentGatewayInitializeSession.graphql │ ├── TransactionCancelRequested.graphql │ ├── TransactionChargeRequested.graphql │ ├── TransactionInitializeSession.graphql │ ├── TransactionProcessSession.graphql │ └── TransactionRefundRequested.graphql ├── next-env.d.ts ├── next.config.js ├── package.json ├── patches └── @opentelemetry__otlp-transformer@0.46.0.patch ├── pnpm-lock.yaml ├── public ├── favicon.ico └── logo.png ├── sentry.client.config.ts ├── sentry.edge.config.ts ├── sentry.server.config.ts ├── src ├── components │ ├── AppContent.tsx │ ├── Navigation.tsx │ ├── NavigationTile.tsx │ └── StatusChip.tsx ├── errors.ts ├── lib │ ├── create-graphq-client.ts │ ├── invariant.ts │ ├── is-in-iframe.ts │ ├── logger │ │ ├── create-logger.ts │ │ ├── logger-console-transport.ts │ │ ├── logger-context.ts │ │ ├── logger-sentry-transport.ts │ │ ├── logger-vercel-transport.ts │ │ └── logger.ts │ ├── no-ssr-wrapper.tsx │ ├── otel │ │ ├── get-attributes-from-request.ts │ │ ├── instrumentation.ts │ │ ├── lib │ │ │ ├── observability-attributes.ts │ │ │ └── race.ts │ │ ├── otel-exchange.ts │ │ ├── otel-graphql-utils.ts │ │ ├── otel-logs-setup.ts │ │ ├── otel-tracer.ts │ │ ├── otel-traces-setup.ts │ │ ├── otel-wrapper.ts │ │ └── shared-config.ts │ ├── theme-synchronizer.tsx │ ├── transaction-actions.ts │ └── zod-error.ts ├── logger-context.ts ├── modules │ ├── configuration │ │ └── app-config.ts │ ├── transaction │ │ ├── transaction-psp-finder.ts │ │ └── transaction-refund-checker.ts │ ├── url │ │ └── app-url-generator.ts │ └── validation │ │ ├── cancel-webhook.ts │ │ ├── charge-webhook.ts │ │ ├── common.ts │ │ ├── refund-webhook.ts │ │ └── sync-transaction.ts ├── order-example.tsx ├── pages │ ├── _app.tsx │ ├── api │ │ ├── manifest.ts │ │ ├── register.ts │ │ ├── trpc │ │ │ └── [trpc].ts │ │ └── webhooks │ │ │ ├── payment-gateway-initialize-session.ts │ │ │ ├── transaction-cancel-requested.ts │ │ │ ├── transaction-charge-requested.ts │ │ │ ├── transaction-initialize-session.ts │ │ │ ├── transaction-process-session.ts │ │ │ └── transaction-refund-requested.ts │ ├── app │ │ ├── checkout.tsx │ │ ├── configuration.tsx │ │ ├── index.tsx │ │ └── transactions │ │ │ ├── [id].tsx │ │ │ └── index.tsx │ └── index.tsx ├── providers │ └── GraphQLProvider.tsx ├── saleor-app.ts ├── server │ ├── middleware │ │ └── attach-app-token.ts │ ├── procedure │ │ └── procedure-with-graphql-client.ts │ ├── routers │ │ ├── app-router.ts │ │ └── transaction-reporter.router.ts │ └── server.ts ├── setup-tests.ts ├── styles │ └── globals.css └── trpc-client.ts ├── tsconfig.json └── vitest.config.ts /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["next", "prettier"] 3 | } -------------------------------------------------------------------------------- /.github/scripts/open-prod-pr.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.github/scripts/open-prod-pr.mjs -------------------------------------------------------------------------------- /.github/workflows/assign-pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.github/workflows/assign-pr.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/manage-example-branches.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.github/workflows/manage-example-branches.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.gitignore -------------------------------------------------------------------------------- /.graphqlrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.graphqlrc.yml -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.npmrc -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 20.12 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/.prettierrc -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /Dockerfile.dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/Dockerfile.dev -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/README.md -------------------------------------------------------------------------------- /docs/1_checkout.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/docs/1_checkout.jpeg -------------------------------------------------------------------------------- /docs/2_event_reporter.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/docs/2_event_reporter.jpeg -------------------------------------------------------------------------------- /graphql/fragments/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/fragments/BasicWebhookMetadata.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/BasicWebhookMetadata.graphql -------------------------------------------------------------------------------- /graphql/fragments/Money.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/Money.graphql -------------------------------------------------------------------------------- /graphql/fragments/PaymentGatewayInitializeSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/PaymentGatewayInitializeSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/PaymentGatewayRecipient.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/PaymentGatewayRecipient.graphql -------------------------------------------------------------------------------- /graphql/fragments/SyncWebhookTransaction.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/SyncWebhookTransaction.graphql -------------------------------------------------------------------------------- /graphql/fragments/Transaction.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/Transaction.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionCancelRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/TransactionCancelRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionChargeRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/TransactionChargeRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionInitializeSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/TransactionInitializeSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionProcessSessionEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/TransactionProcessSessionEvent.graphql -------------------------------------------------------------------------------- /graphql/fragments/TransactionRefundRequestedEvent.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/fragments/TransactionRefundRequestedEvent.graphql -------------------------------------------------------------------------------- /graphql/mutations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/mutations/CompleteCheckout.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/mutations/CompleteCheckout.graphql -------------------------------------------------------------------------------- /graphql/mutations/CreateCheckout.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/mutations/CreateCheckout.graphql -------------------------------------------------------------------------------- /graphql/mutations/InitializeTransaction.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/mutations/InitializeTransaction.graphql -------------------------------------------------------------------------------- /graphql/mutations/TransactionEventReport.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/mutations/TransactionEventReport.graphql -------------------------------------------------------------------------------- /graphql/mutations/UpdateDelivery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/mutations/UpdateDelivery.graphql -------------------------------------------------------------------------------- /graphql/queries/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/queries/ChannelsList.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/queries/ChannelsList.graphql -------------------------------------------------------------------------------- /graphql/queries/FetchAppDetails.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/queries/FetchAppDetails.graphql -------------------------------------------------------------------------------- /graphql/queries/ProductList.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/queries/ProductList.graphql -------------------------------------------------------------------------------- /graphql/queries/TransactionDetailsViaId.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/queries/TransactionDetailsViaId.graphql -------------------------------------------------------------------------------- /graphql/queries/TransactionDetailsViaPsp.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/queries/TransactionDetailsViaPsp.graphql -------------------------------------------------------------------------------- /graphql/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/schema.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /graphql/subscriptions/PaymentGatewayInitializeSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/PaymentGatewayInitializeSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionCancelRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/TransactionCancelRequested.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionChargeRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/TransactionChargeRequested.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionInitializeSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/TransactionInitializeSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionProcessSession.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/TransactionProcessSession.graphql -------------------------------------------------------------------------------- /graphql/subscriptions/TransactionRefundRequested.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/graphql/subscriptions/TransactionRefundRequested.graphql -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/package.json -------------------------------------------------------------------------------- /patches/@opentelemetry__otlp-transformer@0.46.0.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/patches/@opentelemetry__otlp-transformer@0.46.0.patch -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/public/logo.png -------------------------------------------------------------------------------- /sentry.client.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/sentry.client.config.ts -------------------------------------------------------------------------------- /sentry.edge.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/sentry.edge.config.ts -------------------------------------------------------------------------------- /sentry.server.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/sentry.server.config.ts -------------------------------------------------------------------------------- /src/components/AppContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/components/AppContent.tsx -------------------------------------------------------------------------------- /src/components/Navigation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/components/Navigation.tsx -------------------------------------------------------------------------------- /src/components/NavigationTile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/components/NavigationTile.tsx -------------------------------------------------------------------------------- /src/components/StatusChip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/components/StatusChip.tsx -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/lib/create-graphq-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/create-graphq-client.ts -------------------------------------------------------------------------------- /src/lib/invariant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/invariant.ts -------------------------------------------------------------------------------- /src/lib/is-in-iframe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/is-in-iframe.ts -------------------------------------------------------------------------------- /src/lib/logger/create-logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/create-logger.ts -------------------------------------------------------------------------------- /src/lib/logger/logger-console-transport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/logger-console-transport.ts -------------------------------------------------------------------------------- /src/lib/logger/logger-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/logger-context.ts -------------------------------------------------------------------------------- /src/lib/logger/logger-sentry-transport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/logger-sentry-transport.ts -------------------------------------------------------------------------------- /src/lib/logger/logger-vercel-transport.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/logger-vercel-transport.ts -------------------------------------------------------------------------------- /src/lib/logger/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/logger/logger.ts -------------------------------------------------------------------------------- /src/lib/no-ssr-wrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/no-ssr-wrapper.tsx -------------------------------------------------------------------------------- /src/lib/otel/get-attributes-from-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/get-attributes-from-request.ts -------------------------------------------------------------------------------- /src/lib/otel/instrumentation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/instrumentation.ts -------------------------------------------------------------------------------- /src/lib/otel/lib/observability-attributes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/lib/observability-attributes.ts -------------------------------------------------------------------------------- /src/lib/otel/lib/race.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/lib/race.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-exchange.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-exchange.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-graphql-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-graphql-utils.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-logs-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-logs-setup.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-tracer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-tracer.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-traces-setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-traces-setup.ts -------------------------------------------------------------------------------- /src/lib/otel/otel-wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/otel-wrapper.ts -------------------------------------------------------------------------------- /src/lib/otel/shared-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/otel/shared-config.ts -------------------------------------------------------------------------------- /src/lib/theme-synchronizer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/theme-synchronizer.tsx -------------------------------------------------------------------------------- /src/lib/transaction-actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/transaction-actions.ts -------------------------------------------------------------------------------- /src/lib/zod-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/lib/zod-error.ts -------------------------------------------------------------------------------- /src/logger-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/logger-context.ts -------------------------------------------------------------------------------- /src/modules/configuration/app-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/configuration/app-config.ts -------------------------------------------------------------------------------- /src/modules/transaction/transaction-psp-finder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/transaction/transaction-psp-finder.ts -------------------------------------------------------------------------------- /src/modules/transaction/transaction-refund-checker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/transaction/transaction-refund-checker.ts -------------------------------------------------------------------------------- /src/modules/url/app-url-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/url/app-url-generator.ts -------------------------------------------------------------------------------- /src/modules/validation/cancel-webhook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/validation/cancel-webhook.ts -------------------------------------------------------------------------------- /src/modules/validation/charge-webhook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/validation/charge-webhook.ts -------------------------------------------------------------------------------- /src/modules/validation/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/validation/common.ts -------------------------------------------------------------------------------- /src/modules/validation/refund-webhook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/validation/refund-webhook.ts -------------------------------------------------------------------------------- /src/modules/validation/sync-transaction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/modules/validation/sync-transaction.ts -------------------------------------------------------------------------------- /src/order-example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/order-example.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/manifest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/manifest.ts -------------------------------------------------------------------------------- /src/pages/api/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/register.ts -------------------------------------------------------------------------------- /src/pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/payment-gateway-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/payment-gateway-initialize-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/transaction-cancel-requested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/transaction-cancel-requested.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/transaction-charge-requested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/transaction-charge-requested.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/transaction-initialize-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/transaction-initialize-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/transaction-process-session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/transaction-process-session.ts -------------------------------------------------------------------------------- /src/pages/api/webhooks/transaction-refund-requested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/api/webhooks/transaction-refund-requested.ts -------------------------------------------------------------------------------- /src/pages/app/checkout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/app/checkout.tsx -------------------------------------------------------------------------------- /src/pages/app/configuration.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/app/configuration.tsx -------------------------------------------------------------------------------- /src/pages/app/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/app/index.tsx -------------------------------------------------------------------------------- /src/pages/app/transactions/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/app/transactions/[id].tsx -------------------------------------------------------------------------------- /src/pages/app/transactions/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/app/transactions/index.tsx -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/providers/GraphQLProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/providers/GraphQLProvider.tsx -------------------------------------------------------------------------------- /src/saleor-app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/saleor-app.ts -------------------------------------------------------------------------------- /src/server/middleware/attach-app-token.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/server/middleware/attach-app-token.ts -------------------------------------------------------------------------------- /src/server/procedure/procedure-with-graphql-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/server/procedure/procedure-with-graphql-client.ts -------------------------------------------------------------------------------- /src/server/routers/app-router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/server/routers/app-router.ts -------------------------------------------------------------------------------- /src/server/routers/transaction-reporter.router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/server/routers/transaction-reporter.router.ts -------------------------------------------------------------------------------- /src/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/server/server.ts -------------------------------------------------------------------------------- /src/setup-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/setup-tests.ts -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/trpc-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/src/trpc-client.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saleor/dummy-payment-app/HEAD/vitest.config.ts --------------------------------------------------------------------------------