{"id":24200219,"url":"https://github.com/codeboxrcodehub/upay","last_synced_at":"2025-09-11T18:39:53.458Z","repository":{"id":56534748,"uuid":"523650565","full_name":"codeboxrcodehub/upay","owner":"codeboxrcodehub","description":"Upay(bangladesh) payment gateway integration package for laravel/php projects","archived":false,"fork":false,"pushed_at":"2022-10-12T07:19:14.000Z","size":38,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T07:04:59.305Z","etag":null,"topics":["bd-payment","laravel-upay-package","laravel-upay-payment","payment-gateway","upay","upay-api","upay-api-gateway","upay-gateway","upay-laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeboxrcodehub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-11T08:50:49.000Z","updated_at":"2024-05-10T07:49:34.000Z","dependencies_parsed_at":"2022-08-15T20:31:08.659Z","dependency_job_id":null,"html_url":"https://github.com/codeboxrcodehub/upay","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeboxrcodehub%2Fupay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeboxrcodehub%2Fupay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeboxrcodehub%2Fupay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeboxrcodehub%2Fupay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeboxrcodehub","download_url":"https://codeload.github.com/codeboxrcodehub/upay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeboxrcodehub%2Fupay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259098454,"owners_count":22804783,"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":["bd-payment","laravel-upay-package","laravel-upay-payment","payment-gateway","upay","upay-api","upay-api-gateway","upay-gateway","upay-laravel"],"created_at":"2025-01-13T20:41:38.301Z","updated_at":"2025-06-10T15:07:02.689Z","avatar_url":"https://github.com/codeboxrcodehub.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://www.upaybd.com/images/Upay-Logo.jpg\"\u003e\n\u003c/p\u003e\n\n \u003ch1 align=\"center\"\u003eUpay BD Payment Gateway\u003c/h1\u003e\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://img.shields.io/packagist/dt/codeboxr/upay\"\u003e\n\u003cimg src=\"https://img.shields.io/packagist/stars/codeboxr/upay\"\u003e\n\u003c/p\u003e\n\nThis is a Laravel/PHP package for [Upay](https://www.upaybd.com/) BD Payment Gateway. This package can be used in laravel or without laravel/php projects. You can use this package for headless/rest implementation as well as blade or regular mode development. We created this package while working for a project and thought to made it release for all so that it helps. This package is available as regular php [composer package](https://packagist.org/packages/codeboxr/upay).\n\n## Features\n\n1. [Create Payment/Take to Payment Page](https://github.com/codeboxrcodehub/upay#1-create-payment)\n2. [Create Payment for Headless/RestAPI](https://github.com/codeboxrcodehub/upay#2-create-payment-for-restapi)\n3. [Query Payment/Payment Details](https://github.com/codeboxrcodehub/upay#2-query-payment)\n\n## Requirements\n\n- PHP \u003e=7.4\n- Laravel \u003e= 6\n\n## Installation\n\n```bash\ncomposer require codeboxr/upay\n```\n\n### vendor publish (config)\n\n```bash\nphp artisan vendor:publish --provider=\"Codeboxr\\Upay\\UpayServiceProvider\"\n```\n\nAfter publish config file setup your credential. you can see this in your config directory upay.php file\n\n```\n\"sandbox\"                =\u003e env(\"UPAY_SANDBOX\", false), // for sandbox use true\n\"server_ip\"              =\u003e env(\"UPAY_SERVER_IP\", \"\"),\n\"merchant_id\"            =\u003e env(\"UPAY_MERCHANT_ID\", \"\"),\n\"merchant_key\"           =\u003e env(\"UPAY_MERCHANT_KEY\", \"\"),\n\"merchant_code\"          =\u003e env(\"UPAY_MERCHANT_CODE\", \"\"),\n\"merchant_name\"          =\u003e env(\"UPAY_MERCHANT_NAME\", \"\"),\n\"merchant_mobile\"        =\u003e env(\"UPAY_MERCHANT_MOBILE\", \"\"),\n\"merchant_city\"          =\u003e env(\"UPAY_MERCHANT_CITY\", \"\"),\n\"merchant_category_code\" =\u003e env(\"UPAY_CATEGORY_CODE\", \"\"),\n\"redirect_url\"           =\u003e env(\"UPAY_CALLBACK_URL\", \"\")\n```\n\n### Set .env configuration\n\n```\nUPAY_SANDBOX=true // for production use false\nUPAY_SERVER_IP=\"\" // uPay only support IPV4 for production server don't needed sandbox\nUPAY_MERCHANT_ID=\"\"\nUPAY_MERCHANT_KEY=\"\"\nUPAY_MERCHANT_CODE=\"\"\nUPAY_MERCHANT_NAME=\"\"\nUPAY_MERCHANT_MOBILE=\"\"\nUPAY_MERCHANT_CITY=\"\"\nUPAY_CATEGORY_CODE=\"\"\nUPAY_CALLBACK_URL=\"\"\n```\n\n## Usage\n\n### 1. Create Payment\n\n```\nuse Codeboxr\\Upay\\Facade\\Payment;\n\nreturn Payment::executePayment($amount, $invoiceId, $txnId, $date);\n\n```\n\n### Example\n\n```\nreturn Payment::executePayment(10, 'CBX10101', '10127373', '2022-08-26');\n```\n\n### 2. Create Payment for REST API\n\n```\nuse Codeboxr\\Upay\\Facade\\Payment;\n\nreturn Payment::createPayment($amount, $invoiceId, $txnId, $date);\n\n```\n\n### Example\n\n```\nreturn Payment::createPayment(10, 'CBX10101', '10127373', '2022-08-26');\n```\n\n### 3. Query Payment\n\n```\nuse Codeboxr\\Upay\\Facade\\Payment;\n\nPayment::queryPayment($invoiceId); // Invoice ID \n```\n\n\u003cspan style=\"color: #70b7cd\"\u003eNote: Upay only support IPV4 for production server\u003c/span\u003e\n\n## Contributing\n\nContributions to the Upay package are welcome. Please note the following guidelines before submitting your pull request.\n\n- Follow [PSR-4](http://www.php-fig.org/psr/psr-4/) coding standards.\n- Read Upay API documentations first.Please contact with Upay for their api documentation and sandbox access.\n\n## License\n\nUpay package is licensed under the [MIT License](http://opensource.org/licenses/MIT).\n\nCopyright 2022 [Codeboxr](https://codeboxr.com) We are not not affiliated with Upay and don't give any guarantee.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeboxrcodehub%2Fupay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeboxrcodehub%2Fupay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeboxrcodehub%2Fupay/lists"}