{"id":19375317,"url":"https://github.com/mschinis/braintree","last_synced_at":"2025-04-23T18:32:25.393Z","repository":{"id":20642258,"uuid":"23924181","full_name":"mschinis/braintree","owner":"mschinis","description":"Braintree is a Laravel package that contains a service provider for the official braintree v2.x API. Supports drop-in UI and comes with examples.","archived":false,"fork":false,"pushed_at":"2015-02-24T01:39:06.000Z","size":172,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T20:12:26.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/mschinis/braintree","language":"PHP","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/mschinis.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":"2014-09-11T15:31:13.000Z","updated_at":"2019-12-13T16:42:38.000Z","dependencies_parsed_at":"2022-09-01T00:22:28.173Z","dependency_job_id":null,"html_url":"https://github.com/mschinis/braintree","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/mschinis%2Fbraintree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschinis%2Fbraintree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschinis%2Fbraintree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschinis%2Fbraintree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mschinis","download_url":"https://codeload.github.com/mschinis/braintree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223932188,"owners_count":17227273,"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-11-10T08:38:05.169Z","updated_at":"2024-11-10T08:38:05.272Z","avatar_url":"https://github.com/mschinis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Braintree Package for Laravel 4.2\n==============\n\n### Installation\n\nIn your Laravel project's composer.json file, add `braintree` as a dependency in the require object:\n\n```js\n\"mschinis/braintree\": \"dev-master\"\n```\n\nUse `composer update` for composer to update the dependencies and download the package.\n\nOnce installed, add the ServiceProvider to your provider array within `app/config/app.php`:\n\n```php\n'providers' =\u003e array(\n\n    'Mschinis\\Braintree\\BraintreeServiceProvider'\n\n)\n```\n\n### Configuration\n\nTo publish the configuration file, run:\n\n```shell\nphp artisan config:publish mschinis/braintree\n```\n\nThen open `app/config/packages/mschinis/braintree/config.php` to setup your environment and keys:\nAcceptable environment values are `sandbox` or `production`.\nAll required keys can be found by logging in to your [sandbox](https://sandbox.braintreegateway.com/login) or [production](https://www.braintreegateway.com/login) account\n\n\n```php\n\u003c?php\n\nreturn array(\n    'environment'   =\u003e 'sandbox',\n    'merchantId'    =\u003e 'use_your_merchant_id',\n    'publicKey'     =\u003e 'use_your_public_key',\n    'privateKey'    =\u003e 'use_your_private_key',\n    'CSEKey'        =\u003e 'use_your_client_side_encryption_key'\n);\n```\n\nYou can setup different environmental configurations by creating matching folders inside the `app/config/packages/mschinis/braintree` directory. For instance, if you have a `local` environment, create a config file at `app/config/packages/mschinis/braintree/local/config.php` for that environment.\n\n### Example\nYou can use the artisan command `php artisan braintree:example` to generate a boilerplate controller that will handle an example payment and an example view with a payment form.\n\nAfter you generate the files, make sure you add the controller to your routes: `Route::controller('braintree', \"BraintreeController\");`.\n\nOnce the steps above are completed, you can access the test page at `/braintree/test-page`\n\n### Usage\n\nOnce setup, you can use the Braintree PHP classes as spelled out in the [documentation](https://developers.braintreepayments.com/javascript+php/start/overview).\n\nLinks to essential information:\n * [Generating Client Tokens](https://developers.braintreepayments.com/javascript+php/sdk/overview/generate-client-token)\n * [Drop-in UI](https://developers.braintreepayments.com/javascript+php/start/hello-client)\n * [Transactions](https://developers.braintreepayments.com/javascript+php/sdk/server/transaction-processing/create)\n * [Result \u0026 Error Handling](https://developers.braintreepayments.com/javascript+php/sdk/server/transaction-processing/result-handling)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschinis%2Fbraintree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmschinis%2Fbraintree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschinis%2Fbraintree/lists"}