{"id":20796666,"url":"https://github.com/gotocva/node-paypal-v2","last_synced_at":"2026-04-11T21:08:45.362Z","repository":{"id":44038155,"uuid":"224403797","full_name":"gotocva/node-paypal-v2","owner":"gotocva","description":"NodeJs wrapper for paypal payment gateway v2 REST api ","archived":false,"fork":false,"pushed_at":"2022-12-11T15:03:11.000Z","size":41,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T11:29:04.597Z","etag":null,"topics":["nodejs","paypal","paypal-rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotocva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-27T10:21:45.000Z","updated_at":"2019-11-27T10:32:59.000Z","dependencies_parsed_at":"2023-01-27T01:30:45.900Z","dependency_job_id":null,"html_url":"https://github.com/gotocva/node-paypal-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnode-paypal-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnode-paypal-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnode-paypal-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotocva%2Fnode-paypal-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotocva","download_url":"https://codeload.github.com/gotocva/node-paypal-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141256,"owners_count":20242817,"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":["nodejs","paypal","paypal-rest-api"],"created_at":"2024-11-17T16:28:33.462Z","updated_at":"2026-04-11T21:08:45.328Z","avatar_url":"https://github.com/gotocva.png","language":"JavaScript","funding_links":["https://api.sandbox.paypal.com/v2/checkout/orders/196744540V7545823","https://www.sandbox.paypal.com/checkoutnow?token=196744540V7545823","https://api.sandbox.paypal.com/v2/checkout/orders/196744540V7545823/capture"],"categories":[],"sub_categories":[],"readme":"# node-paypal-v2\nNodeJs wrapper for paypal payment gateway v2 REST api #paypal\n\n    ```json\n    {\n    \"sandbox\" : true, // true = sandbox false = production\n    \"paypal\" : {\n        \"client_id\": \"YOUR_PAYPAL_CLIENT_ID\",\n        \"client_secret\": \"YOUR_PAYPAL_CLIENT_SECRET\"\n    },\n    \"amount\" : \"200\",\n    \"currency\" : \"USD\"\n    }\n    ```\n\n    Call the below function with above params \n\n    ```js\n        initPayment(req.body.sandbox,req.body.paypal.client_id,req.body.paypal.client_secret,req.body.currency,req.body.amount,function(result){\n            res.send(result);\n        });\n    ```\n\n    ```json\n    {\n        \"token\": \"QWE4OXFZeWN2aF9ranlxUHU2MzFEOTVBdEVFZF90R2sybC1XVjNtRndaZHJRUzdFV1pIcnN6a0I5S2VOdkpuOXYzNWJScV9POGZ1c0VfRWY6RUJTMFo0X2NqOVVRYUZnRHRiVlZhWXVWUDNnTWZGTi1YZWs3WlVyOU50c01OZU12UDJCTXJ3c3czU0V2alZSQUdDOEJSSVZFYmVuV2hzeXo=\",\n        \"data\": {\n            \"id\": \"196744540V7545823\",\n            \"links\": [\n                {\n                    \"href\": \"https://api.sandbox.paypal.com/v2/checkout/orders/196744540V7545823\",\n                    \"rel\": \"self\",\n                    \"method\": \"GET\"\n                },\n                {\n                    \"href\": \"https://www.sandbox.paypal.com/checkoutnow?token=196744540V7545823\",\n                    \"rel\": \"approve\",\n                    \"method\": \"GET\"\n                },\n                {\n                    \"href\": \"https://api.sandbox.paypal.com/v2/checkout/orders/196744540V7545823\",\n                    \"rel\": \"update\",\n                    \"method\": \"PATCH\"\n                },\n                {\n                    \"href\": \"https://api.sandbox.paypal.com/v2/checkout/orders/196744540V7545823/capture\",\n                    \"rel\": \"capture\",\n                    \"method\": \"POST\"\n                }\n            ],\n            \"status\": \"CREATED\"\n        }\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fnode-paypal-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotocva%2Fnode-paypal-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotocva%2Fnode-paypal-v2/lists"}