{"id":19337291,"url":"https://github.com/infobip/payment-plugin-appcelerator-titanium","last_synced_at":"2025-07-21T17:31:34.319Z","repository":{"id":13648620,"uuid":"16342093","full_name":"infobip/payment-plugin-appcelerator-titanium","owner":"infobip","description":"Payment plugin for Appcelerator Titanium","archived":false,"fork":false,"pushed_at":"2014-02-13T09:15:52.000Z","size":848,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-23T01:35:28.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infobip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","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":"2014-01-29T10:50:47.000Z","updated_at":"2015-03-03T15:21:05.000Z","dependencies_parsed_at":"2022-08-28T10:40:43.708Z","dependency_job_id":null,"html_url":"https://github.com/infobip/payment-plugin-appcelerator-titanium","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/infobip/payment-plugin-appcelerator-titanium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip%2Fpayment-plugin-appcelerator-titanium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip%2Fpayment-plugin-appcelerator-titanium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip%2Fpayment-plugin-appcelerator-titanium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip%2Fpayment-plugin-appcelerator-titanium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infobip","download_url":"https://codeload.github.com/infobip/payment-plugin-appcelerator-titanium/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infobip%2Fpayment-plugin-appcelerator-titanium/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266342809,"owners_count":23914262,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-10T03:13:58.362Z","updated_at":"2025-07-21T17:31:34.296Z","avatar_url":"https://github.com/infobip.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Centili in-app Payment Plugin for Titanium\n\n*only for Android platform*\n\n## Description\n\nThis project is the Titanium Module which can be merged with your Titanium project and enable you to use the Centili Mobile Payments system. This is module for Android only.\n\n## Accessing the module\n\nTo access this module from JavaScript, you need to do the following:\n\n\tvar appcelerator_mpayments = require(\"c.mpayments.appcelerator\");\n\nThe `appcelerator_mpayments` variable is a reference to the Module object.\t\n\n## Step by step integration\n\n  1.  Access the appcelerator_mpayments Module by `require(\"c.mpayments.appcelerator\")`.\n\n  2.  Create a `PurchaseRequest` object with the `ApiKey` as only mandatory field (you can also use other optional fields like `packageIndex`).\n\n  3.  Start purchase by calling `startPurchase(PurchaseRequest)` method on your `c.mpayments.appcelerator` instance.\n\n  4.  Your call-back method will be invoked upon completing the payment request. All you have to do is handle the payment result in your application.\n\n\t    appcelerator_mpayments.addEventListener('onPurchaseSuccess', onSuccess);\n\t    appcelerator_mpayments.addEventListener('onPurchasePending', onPending);\n\t    appcelerator_mpayments.addEventListener('onPurchaseFailed', onFailed);\n\t    appcelerator_mpayments.addEventListener('onPurchaseCancelled', onCancelled);  \n\n### Additional methods\n\nYou can get and set `DebugMode` to 'true' or 'false' to get our logger output debug data. Defaults to false.\nYou can also set `PendingTransactionHandlingEnabled` 'true' or 'false', which will influence whether we will continue the pending payment when new a payment request is sent, or we will start a new payment request.\nDefault is 'true', which means that we will try to resume the unresolved transaction by default.\n\n## Usage example\n\n\tvar win= Ti.UI.createWindow({\n\t\tbackgroundColor: \"white\"\n\t});\n\t\n\t// Create a Label.\n\tvar label= Ti.UI.createLabel();\n\t\n\t// Create a Button.\n\tvar button = Ti.UI.createButton({\n\t\ttitle : 'Purchase',\n\t\theight : 100,\n\t\twidth : 200,\n\t\ttop : 10,\n\t\t\n\t});\n\t\n\t// Listen for click events.\n\tbutton.addEventListener('click', function() {\n\t\tTitanium.API.info('You clicked the button');\n\t\ttestExample();\n\t});\n\t\n\t// Add to the parent view.\n\twin.add(button);\n\twin.add(label);\n\twin.open();\n\t\n\tvar appcelerator_mpayments = require(\"c.mpayments.appcelerator\");\n\tTitanium.API.info(\"module is =\u003e \" + appcelerator_mpayments);\n\t\n\tvar onCancelled = function(data) {\n\tTi.API.info(\"Transaction status is CANCELLED:\" + data.apiKey + ' ; ' + data.clientId + ' ; ' + data.itemAmount);\n\t};\n\t\n\tvar onSuccess = function(data) {\n\tTi.API.info(\"Transaction status is SUCCESS: \" + data.apiKey + ' ; ' + data.clientId + ' ; ' + data.itemAmount + ' test = ' + data.test);\n\t};\n\t\n\tvar onFailed = function(data) {\n\tTi.API.info(\"Transaction status is FAILED:\" + data.apiKey + ' ; ' + data.clientId + ' ; ' + data.itemAmount);\n\t};\n\t\n\tvar onPending = function(data) {\n\tTi.API.info(\"Transaction status is PENDING :\" + data.apiKey + ' ; ' + data.clientId + ' ; ' + data.itemAmount);\n\t};\n\t\n\tfunction testExample(){\n\t\tappcelerator_mpayments.setDebugModeEnabled(true);\n\t    appcelerator_mpayments.setPendingTransactionHandlingEnabled(false);\n\t\tvar PurchaseRequest = {\n\t\t\tapiKey: '28550ec26491d4ed1b1de6fd3fe2b92a',\n\t\t\tclientId: 'test-client-id'\n\t\t};\n\t\tappcelerator_mpayments.startPurchase(PurchaseRequest);\n\t}\n\tappcelerator_mpayments.addEventListener('onPurchaseSuccess', onSuccess);\n\tappcelerator_mpayments.addEventListener('onPurchasePending', onPending);\n\tappcelerator_mpayments.addEventListener('onPurchaseFailed', onFailed);\n\tappcelerator_mpayments.addEventListener('onPurchaseCancelled', onCancelled);\n\t\n\n## Authors\n\nFramework Integration Team @ Infobip Ltd.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfobip%2Fpayment-plugin-appcelerator-titanium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfobip%2Fpayment-plugin-appcelerator-titanium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfobip%2Fpayment-plugin-appcelerator-titanium/lists"}