{"id":16049180,"url":"https://github.com/ayan4m1/paypal-fee","last_synced_at":"2025-03-18T04:31:08.933Z","repository":{"id":195061312,"uuid":"692168491","full_name":"ayan4m1/paypal-fee","owner":"ayan4m1","description":null,"archived":true,"fork":false,"pushed_at":"2024-11-05T23:58:12.000Z","size":411,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T17:06:36.152Z","etag":null,"topics":["library","nodejs","paypal","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ayan4m1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-15T18:01:58.000Z","updated_at":"2025-03-12T23:18:24.000Z","dependencies_parsed_at":"2023-09-16T10:38:41.424Z","dependency_job_id":"8e6cb734-96fe-417f-a73b-4cc51f8bcdc6","html_url":"https://github.com/ayan4m1/paypal-fee","commit_stats":null,"previous_names":["ayan4m1/paypal-fee"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fpaypal-fee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fpaypal-fee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fpaypal-fee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayan4m1%2Fpaypal-fee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayan4m1","download_url":"https://codeload.github.com/ayan4m1/paypal-fee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244156641,"owners_count":20407542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","nodejs","paypal","typescript"],"created_at":"2024-10-09T00:14:38.724Z","updated_at":"2025-03-18T04:31:08.928Z","avatar_url":"https://github.com/ayan4m1.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# paypal-fee\n\n[![Package Version](https://badge.fury.io/js/paypal-fee.svg)](https://www.npmjs.com/package/paypal-fee)\n[![Code Coverage](https://codecov.io/gh/ayan4m1/paypal-fee/graph/badge.svg?token=IjghFTPyZf)](https://codecov.io/gh/ayan4m1/paypal-fee)\n\n**NOTE**: PayPal has significantly changed their fee structure, this module needs to be rewritten to be useful as of today.\n\n## features\n\n- Written in TypeScript\n- Less than 2kB of code\n- No runtime dependencies\n- Supports ESM and CommonJS\n- Comprehensive integration tests\n\n## requirements\n\n- Node 16+\n\n## usage\n\nTo use this module, simply install it using your favorite package manager and then import the `calculateFee` function.\n\n`calculateFee` takes a payment value in USD and a `PaymentType`, and returns a fee amount in USD.\n\nPayment types are as follows:\n\n## example\n\n```ts\nimport { calculateFee, PaymentType } from 'paypal-fee';\n\nconst fee = calculateFee(100, PaymentType.GoodsAndServices);\n\nconsole.log(fee);\n```\n\nwill output `3.98`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fpaypal-fee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayan4m1%2Fpaypal-fee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayan4m1%2Fpaypal-fee/lists"}