├── .eslintrc.json ├── .github ├── CODEOWNERS ├── FUNDING.yml └── workflows │ ├── ci.yml │ ├── publish.yml │ ├── release-beta.yml │ └── release.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── .versionrc.js ├── BETA_RELEASE.md ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── RELEASE_WORKFLOW.md ├── package.json ├── src ├── adapters │ ├── next-js.ts │ └── node.ts ├── client │ └── index.ts ├── core │ ├── BetterPay.ts │ ├── BetterPayConfig.ts │ ├── BetterPayHandler.ts │ └── PaymentProvider.ts ├── index.ts ├── providers │ ├── akbank │ │ ├── index.ts │ │ ├── types.ts │ │ └── utils.ts │ ├── iyzico │ │ ├── index.ts │ │ ├── types.ts │ │ └── utils.ts │ └── paytr │ │ ├── index.ts │ │ ├── types.ts │ │ └── utils.ts └── types │ ├── common.ts │ ├── index.ts │ └── subscription.ts ├── tests ├── README.md ├── fixtures │ ├── payment-data.ts │ ├── provider-responses.ts │ └── subscription-data.ts ├── helpers │ ├── axios-mock.ts │ └── request-validator.ts ├── integration │ ├── core │ │ └── multi-provider.test.ts │ └── providers │ │ ├── akbank.test.ts │ │ ├── iyzico.test.ts │ │ └── paytr.test.ts └── unit │ └── providers │ ├── akbank │ ├── index.test.ts │ └── utils.test.ts │ └── iyzico │ └── index.test.ts ├── tsconfig.json ├── tsup.config.ts └── vitest.config.ts /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [furkanczay] -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/release-beta.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.github/workflows/release-beta.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.prettierrc -------------------------------------------------------------------------------- /.versionrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/.versionrc.js -------------------------------------------------------------------------------- /BETA_RELEASE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/BETA_RELEASE.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/README.md -------------------------------------------------------------------------------- /RELEASE_WORKFLOW.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/RELEASE_WORKFLOW.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/package.json -------------------------------------------------------------------------------- /src/adapters/next-js.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/adapters/next-js.ts -------------------------------------------------------------------------------- /src/adapters/node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/adapters/node.ts -------------------------------------------------------------------------------- /src/client/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/client/index.ts -------------------------------------------------------------------------------- /src/core/BetterPay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/core/BetterPay.ts -------------------------------------------------------------------------------- /src/core/BetterPayConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/core/BetterPayConfig.ts -------------------------------------------------------------------------------- /src/core/BetterPayHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/core/BetterPayHandler.ts -------------------------------------------------------------------------------- /src/core/PaymentProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/core/PaymentProvider.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/providers/akbank/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/akbank/index.ts -------------------------------------------------------------------------------- /src/providers/akbank/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/akbank/types.ts -------------------------------------------------------------------------------- /src/providers/akbank/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/akbank/utils.ts -------------------------------------------------------------------------------- /src/providers/iyzico/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/iyzico/index.ts -------------------------------------------------------------------------------- /src/providers/iyzico/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/iyzico/types.ts -------------------------------------------------------------------------------- /src/providers/iyzico/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/iyzico/utils.ts -------------------------------------------------------------------------------- /src/providers/paytr/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/paytr/index.ts -------------------------------------------------------------------------------- /src/providers/paytr/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/paytr/types.ts -------------------------------------------------------------------------------- /src/providers/paytr/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/providers/paytr/utils.ts -------------------------------------------------------------------------------- /src/types/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/types/common.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/subscription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/src/types/subscription.ts -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/fixtures/payment-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/fixtures/payment-data.ts -------------------------------------------------------------------------------- /tests/fixtures/provider-responses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/fixtures/provider-responses.ts -------------------------------------------------------------------------------- /tests/fixtures/subscription-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/fixtures/subscription-data.ts -------------------------------------------------------------------------------- /tests/helpers/axios-mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/helpers/axios-mock.ts -------------------------------------------------------------------------------- /tests/helpers/request-validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/helpers/request-validator.ts -------------------------------------------------------------------------------- /tests/integration/core/multi-provider.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/integration/core/multi-provider.test.ts -------------------------------------------------------------------------------- /tests/integration/providers/akbank.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/integration/providers/akbank.test.ts -------------------------------------------------------------------------------- /tests/integration/providers/iyzico.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/integration/providers/iyzico.test.ts -------------------------------------------------------------------------------- /tests/integration/providers/paytr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/integration/providers/paytr.test.ts -------------------------------------------------------------------------------- /tests/unit/providers/akbank/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/unit/providers/akbank/index.test.ts -------------------------------------------------------------------------------- /tests/unit/providers/akbank/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/unit/providers/akbank/utils.test.ts -------------------------------------------------------------------------------- /tests/unit/providers/iyzico/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tests/unit/providers/iyzico/index.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/tsup.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/furkanczay/better-payment/HEAD/vitest.config.ts --------------------------------------------------------------------------------