{"id":23420886,"url":"https://github.com/nericode/nativescript-open-pay","last_synced_at":"2025-04-09T09:33:54.898Z","repository":{"id":57308676,"uuid":"177681754","full_name":"nericode/nativescript-open-pay","owner":"nericode","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-22T23:42:54.000Z","size":2058,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T16:43:35.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/nericode.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":"2019-03-25T23:45:22.000Z","updated_at":"2019-03-26T16:07:49.000Z","dependencies_parsed_at":"2022-08-29T05:00:40.640Z","dependency_job_id":null,"html_url":"https://github.com/nericode/nativescript-open-pay","commit_stats":null,"previous_names":["nericodec/nativescript-open-pay"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-open-pay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-open-pay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-open-pay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nericode%2Fnativescript-open-pay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nericode","download_url":"https://codeload.github.com/nericode/nativescript-open-pay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248012532,"owners_count":21033218,"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":[],"created_at":"2024-12-23T02:13:02.938Z","updated_at":"2025-04-09T09:33:54.881Z","avatar_url":"https://github.com/nericode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Openpay ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png)\n\n## Support\n\nSupport Android \u0026 iOS.\n\n## Installation\n\n```javascript\ntns plugin add nativescript-open-pay\n```\n\n## Usage\n\nIn the demo you will find a test token to test quickly\n\n```javascript\nimport { Observable } from \"tns-core-modules/data/observable\";\nimport { OpenPay, Card } from \"nativescript-open-pay\";\n\nexport class HelloWorldModel extends Observable {\n    private openPay: OpenPay;\n\n    constructor() {\n        super();\n\n        this.openPay = new OpenPay();\n        this.openPay.setup(\n            \"merchant_id\", // merchantId\n            \"api_key\", // apiKey\n            false // ProductionMode Sandbox = false\n        );\n\n        let card: Card = {\n            holderName: \"Juan Perez Ramirez\",\n            cardNumber: \"4111111111111111\",\n            expirationMonth: \"12\",\n            expirationYear: \"20\",\n            cvv2: \"110\"\n        };\n\n        this.openPay\n            .createToken(card)\n            .then(function(args) {\n                console.dir(args);\n            })\n            .catch(function(error) {\n                console.log(error);\n            });\n    }\n}\n\n```\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-open-pay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnericode%2Fnativescript-open-pay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnericode%2Fnativescript-open-pay/lists"}