{"id":18885645,"url":"https://github.com/nstudio/nativescript-paytm","last_synced_at":"2026-07-03T07:31:15.746Z","repository":{"id":57132265,"uuid":"123317788","full_name":"nstudio/nativescript-paytm","owner":"nstudio","description":"Paytm SDK implementation for NativeScript. Add paytm payments capability to your NativeScript app. :money_with_wings: :moneybag:","archived":false,"fork":false,"pushed_at":"2019-05-27T07:30:39.000Z","size":2691,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-18T00:56:58.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-28T17:23:46.000Z","updated_at":"2019-05-27T07:30:40.000Z","dependencies_parsed_at":"2022-08-24T22:51:42.713Z","dependency_job_id":null,"html_url":"https://github.com/nstudio/nativescript-paytm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nstudio/nativescript-paytm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-paytm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-paytm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-paytm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-paytm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstudio","download_url":"https://codeload.github.com/nstudio/nativescript-paytm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-paytm/sbom","scorecard":{"id":697433,"data":{"date":"2025-08-11","repo":{"name":"github.com/nstudio/nativescript-paytm","commit":"560778f51e216cdacf1c93b6d1e7889560d7d166"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: src/platforms/android/PGSDK_V2.1.jar:1","Warn: binary detected: src/platforms/ios/PaymentsSDK.a:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: publish/pack.sh:10","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-22T04:09:27.517Z","repository_id":57132265,"created_at":"2025-08-22T04:09:27.517Z","updated_at":"2025-08-22T04:09:27.517Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35077505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T07:20:36.469Z","updated_at":"2026-07-03T07:31:15.713Z","avatar_url":"https://github.com/nstudio.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"! Needs maintenance. PRs welcome.\n\n# nativescript-paytm\n\nWorks on Android and iOS.\nFor use in India to pay via Paytm.\n\n## Installation\n\n```javascript\ntns plugin add @nstudio/nativescript-paytm\n```\n\n## Usage\n\nYou will need a working [backend server](https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_NodeJs) to generate paytm orders.\nDo not generate the order or checksum in the app.\n\n### Typescript / Angular\n\n```js\nimport {\n    Paytm,\n    Order,\n    TransactionCallback,\n    IOSCallback\n} from \"@nstudio/nativescript-paytm\";\n\nexport function onPayWithPaytm(args: observable.EventData) {\n    paytm.setIOSCallbacks({\n        didFinishedResponse: function(response) {\n            console.log(response);\n        },\n        didCancelTransaction: function() {\n            console.log(\"User cancelled transaction\");\n        },\n        errorMissingParameterError: function(error) {\n            console.log(error);\n        }\n    });\n\n    // Sample order\n    const order: Order = {\n        // This will fail saying duplicate order id\n        // generate your own order to test this.\n        MID: \"Tomcas09769922377481\",\n        ORDER_ID: \"ORDER8874\",\n        CUST_ID: \"CUST6483\",\n        INDUSTRY_TYPE_ID: \"Retail\",\n        CHANNEL_ID: \"WAP\",\n        TXN_AMOUNT: \"10.00\",\n        WEBSITE: \"APP_STAGING\",\n        CALLBACK_URL: \"https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp\",\n        CHECKSUMHASH:\n            \"NDspZhvSHbq44K3A9Y4daf9En3l2Ndu9fmOdLG+bIwugQ6682Q3JiNprqmhiWAgGUnNcxta3LT2Vtk3EPwDww8o87A8tyn7/jAS2UAS9m+c=\"\n    };\n\n    paytm.createOrder(order);\n\n    paytm.initialize(\"STAGING\"); // set to PRODUCTION when you go live\n\n    paytm.startPaymentTransaction({\n        someUIErrorOccurred: function(inErrorMessage) {\n            console.log(inErrorMessage);\n        },\n        onTransactionResponse: function(inResponse) {\n            console.log(inResponse);\n        },\n        networkNotAvailable: function() {\n            console.log(\"Network not available\");\n        },\n        clientAuthenticationFailed: function(inErrorMessage) {\n            console.log(inErrorMessage);\n        },\n        onErrorLoadingWebPage: function(\n            iniErrorCode,\n            inErrorMessage,\n            inFailingUrl\n        ) {\n            console.log(iniErrorCode, inErrorMessage, inFailingUrl);\n        },\n        onBackPressedCancelTransaction: function() {\n            console.log(\"User cancelled transaction by pressing back button\");\n        },\n        onTransactionCancel: function(inErrorMessage, inResponse) {\n            console.log(inErrorMessage, inResponse);\n        }\n    });\n}\n```\n\n## JavaScript\nSame as above, but the import statement will be\n\n```js\nconst Paytm = require(\"@nstudio/nativescript-paytm\").Paytm\n```\n\n**NOTE:**\nIf you are using Sandbox credentials, then you won't be able to see the option\nto pay with Credit/Debit card or netbanking. That is perfectly normal.\nOnce you get staging and production credentials from paytm, you will be able to\nuse it just fine.\n\n## API\n\n**setIOSCallbacks (object with callback methods for iOS) : void** -\nUsed to set the iOS Callbacks\nAvailable callbacks are\n\n    didFinishedResponse (response) : void\n    didCancelTransaction () : void\n    errorMissingParameterError (response): void\n\n**createOrder (order object) : void** -\nUsed to create an order using paytm order object.\nPlease refer the usage guide for sample order.\n\n**initialize (string) : void** -\nUsed to initialise paytm environment.\nAccepted strings are \"STAGING\" and \"PRODUCTION\"\n\n**startPaymentTransaction (object with callback methods for Android) : void** -\nUsed to start a transaction.\nAvailable callbacks are\n\n    someUIErrorOccurred (inErrorMessage) : void\n    onTransactionResponse (inResponse) : void // transaction successful\n    networkNotAvailable () : void\n    clientAuthenticationFailed (inErrorMessage) : void\n    onErrorLoadingWebPage (iniErrorCode, inErrorMessage, inFailingUrl) : void\n    onBackPressedCancelTransaction ()\n    onTransactionCancel (inErrorMessage, inResponse) : void\n\nThe callback method names are self explanatory.\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-paytm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstudio%2Fnativescript-paytm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-paytm/lists"}