{"id":17044961,"url":"https://github.com/codenameone/braintreecodenameone","last_synced_at":"2025-04-30T10:50:02.748Z","repository":{"id":148683961,"uuid":"89906697","full_name":"codenameone/BraintreeCodenameOne","owner":"codenameone","description":"Braintree (paypal mobile) API bindings for Codename One","archived":false,"fork":false,"pushed_at":"2020-07-06T05:46:02.000Z","size":92,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T10:49:59.208Z","etag":null,"topics":["braintree","braintree-sdk","codenameone","payment","payment-integration"],"latest_commit_sha":null,"homepage":"https://www.codenameone.com/","language":"Java","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/codenameone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-01T07:48:47.000Z","updated_at":"2023-03-10T11:57:59.000Z","dependencies_parsed_at":"2023-05-28T16:00:30.289Z","dependency_job_id":null,"html_url":"https://github.com/codenameone/BraintreeCodenameOne","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/codenameone%2FBraintreeCodenameOne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2FBraintreeCodenameOne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2FBraintreeCodenameOne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2FBraintreeCodenameOne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenameone","download_url":"https://codeload.github.com/codenameone/BraintreeCodenameOne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251685290,"owners_count":21627269,"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":["braintree","braintree-sdk","codenameone","payment","payment-integration"],"created_at":"2024-10-14T09:36:01.824Z","updated_at":"2025-04-30T10:50:02.742Z","avatar_url":"https://github.com/codenameone.png","language":"Java","readme":"\u003cimg src=\"https://www.codenameone.com/img/blog/new-features-3.jpg\" /\u003e\n\n# Braintree CodenameOne\n\nIntegrates the Braintree SDK's for iOS/Android. There is also a somewhat broken fallback implementation based on the  JavaScript API. This SDK assumes you integrated braintree in the server and have a server side API to facilitate the payment processing.\n\nCheck out the [Braintree's docs](https://developers.braintreepayments.com/start/overview) to understand how this integrates with the server side which does most of the heavy lifting within this API. \n\nThe API for Braintree on the client includes one method: `Purchase.startOrder()` where a callback interface is passed to provide:\n\n````java\nPurchase.startOrder(new Purchase.Callback() {\n        public String fetchToken() {\n           // this method needs to return the token from the Brain tree server API. \n           // You need to use this code to connect to your server or return the data\n           // from a previous connection that fetched the token\n        }\n        \n        public void onPurchaseSuccess(String nonce) {\n            // this is a callback that will be invoked when the purchase succeeds\n        }\n        \n        public void onPurchaseFail(String errorMessage) {\n            // this is a callback that will be invoked when the purchase fails\n        }\n        \n        public void onPurchaseCancel() {\n            // this is a callback that will be invoked when the purchase is canceled\n        }\n    });\n````\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameone%2Fbraintreecodenameone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenameone%2Fbraintreecodenameone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameone%2Fbraintreecodenameone/lists"}