├── .env.example ├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .npmignore ├── .prettierrc ├── LICENSE ├── README.md ├── commitlint.config.js ├── jest-preset.js ├── jest-puppeteer.config.js ├── jest.config.js ├── nodemon.json ├── package.json ├── recurring-payment-flow.png ├── src ├── __tests__ │ └── recurring-payment.test.ts ├── declaration.d.ts ├── functions │ ├── adherePlan.ts │ ├── billingPlan.ts │ ├── createPlan.ts │ ├── getSession.ts │ └── retryPayment.ts ├── index.ts ├── types │ ├── AdherePlan.ts │ ├── BillingPlan.ts │ ├── CreatePlan.ts │ ├── Maybe.ts │ └── RetryPayment.ts ├── utils │ ├── getBaseUrl.ts │ └── getRecurringPaymentBaseUrl.ts └── validators │ ├── AdherePlan.ts │ ├── BillingPlan.ts │ ├── CreatePlan.ts │ └── RetryPayment.ts ├── tsconfig.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | .env -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] }; -------------------------------------------------------------------------------- /jest-preset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/jest-preset.js -------------------------------------------------------------------------------- /jest-puppeteer.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/jest-puppeteer.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/jest.config.js -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/package.json -------------------------------------------------------------------------------- /recurring-payment-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/recurring-payment-flow.png -------------------------------------------------------------------------------- /src/__tests__/recurring-payment.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/__tests__/recurring-payment.test.ts -------------------------------------------------------------------------------- /src/declaration.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/declaration.d.ts -------------------------------------------------------------------------------- /src/functions/adherePlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/functions/adherePlan.ts -------------------------------------------------------------------------------- /src/functions/billingPlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/functions/billingPlan.ts -------------------------------------------------------------------------------- /src/functions/createPlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/functions/createPlan.ts -------------------------------------------------------------------------------- /src/functions/getSession.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/functions/getSession.ts -------------------------------------------------------------------------------- /src/functions/retryPayment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/functions/retryPayment.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types/AdherePlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/types/AdherePlan.ts -------------------------------------------------------------------------------- /src/types/BillingPlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/types/BillingPlan.ts -------------------------------------------------------------------------------- /src/types/CreatePlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/types/CreatePlan.ts -------------------------------------------------------------------------------- /src/types/Maybe.ts: -------------------------------------------------------------------------------- 1 | export type Maybe = T | undefined; 2 | -------------------------------------------------------------------------------- /src/types/RetryPayment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/types/RetryPayment.ts -------------------------------------------------------------------------------- /src/utils/getBaseUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/utils/getBaseUrl.ts -------------------------------------------------------------------------------- /src/utils/getRecurringPaymentBaseUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/utils/getRecurringPaymentBaseUrl.ts -------------------------------------------------------------------------------- /src/validators/AdherePlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/validators/AdherePlan.ts -------------------------------------------------------------------------------- /src/validators/BillingPlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/validators/BillingPlan.ts -------------------------------------------------------------------------------- /src/validators/CreatePlan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/validators/CreatePlan.ts -------------------------------------------------------------------------------- /src/validators/RetryPayment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/src/validators/RetryPayment.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EduSantosBrito/pagseguro-that-works/HEAD/yarn.lock --------------------------------------------------------------------------------