{"id":42853562,"url":"https://github.com/mahabubulhasan/sslcommerz","last_synced_at":"2026-01-30T12:13:32.610Z","repository":{"id":54638262,"uuid":"146566770","full_name":"mahabubulhasan/sslcommerz","owner":"mahabubulhasan","description":"SSLCommerz Payment Gateway for Laravel","archived":false,"fork":false,"pushed_at":"2020-05-03T11:02:21.000Z","size":15,"stargazers_count":12,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-13T09:45:32.516Z","etag":null,"topics":["laravel","payment-gateway","payment-processor","sslcommerz"],"latest_commit_sha":null,"homepage":null,"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/mahabubulhasan.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":"2018-08-29T08:07:17.000Z","updated_at":"2025-02-24T11:48:17.000Z","dependencies_parsed_at":"2022-08-13T22:20:49.523Z","dependency_job_id":null,"html_url":"https://github.com/mahabubulhasan/sslcommerz","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mahabubulhasan/sslcommerz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahabubulhasan%2Fsslcommerz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahabubulhasan%2Fsslcommerz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahabubulhasan%2Fsslcommerz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahabubulhasan%2Fsslcommerz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahabubulhasan","download_url":"https://codeload.github.com/mahabubulhasan/sslcommerz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahabubulhasan%2Fsslcommerz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T11:55:24.701Z","status":"ssl_error","status_checked_at":"2026-01-30T11:54:13.194Z","response_time":66,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["laravel","payment-gateway","payment-processor","sslcommerz"],"created_at":"2026-01-30T12:13:32.007Z","updated_at":"2026-01-30T12:13:32.603Z","avatar_url":"https://github.com/mahabubulhasan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSLCommerz\n[SSLCommerz](https://www.sslcommerz.com) Payment gateway library for Laravel framework. Official documentation is [here](https://developer.sslcommerz.com/docs.html).\n\n## install\n```\ncomposer require uzzal/sslcommerz\n```\n\n### publish\n```\nartisan vendor:publish\n```\nThis command will create a `sslcommerz.php` file inside the `config` directory. Configure your parameters in your `.env` file\n```\n#sslcommerz\nSTORE_ID=your_store_id\nSTORE_PASSWORD=your_store_password\nSUCCESS_URL=http://your-domain.at/success.php\nFAIL_URL=http://your-domain.at/fail.php\nCANCEL_URL=http://your-domain.at/cancel.php\nSANDBOX_MODE=true\n``` \n\n### Initiating a Payment session\nThis `initSession` will give you a gateway url. With this url you will be able to continue the payment through sslcommerz.\n```php\n$customer = new Customer('Mahabubul Hasan', 'mahabub@example.com', '0171xxxxx22');\n$resp = Client::initSession($customer, 29); //29 is the amount\necho $resp-\u003egetGatewayUrl();\n```\nor with configuration\n```php\n$customer = new Customer('Mahabubul Hasan', 'mahabub@example.com', '0171xxxxx22');\n$config[SessionRequest::EMI] = '0';\n$resp = Client::initSession($customer, 29, $config);\necho $resp-\u003egetGatewayUrl();\n```\n\n### Request for Validation\nThis `verifyOrder` method takes a `val_id` as parameter which you will get in the IPN request.\n\n```php\n$resp = Client::verifyOrder('180828114058np43AJdzJJOsYzc');\necho 'status: '.$resp-\u003egetStatus();\necho 'transaction: '.$resp-\u003egetTransactionId();\n```\n\n### IPN Listener (Step 4,5)\nAfter filling the card information and submission in the sslcommerz window it will send a IPN notificaion to your\nspecified IPN url. To grab the notification use the following code. For more details [see here](https://developer.sslcommerz.com/docs.html)\n \n```php\nif(ipn_hash_varify(config('sslcommerz.store_password'))){\n    $ipn = new IpnNotification($_POST);\n    $val_id = $ipn-\u003egetValId();\n    $transaction_id = $ipn-\u003egetTransactionId();\n    $amount = $ipn-\u003egetAmount();\n    $resp = Client::verifyOrder($val_id);\n} \n```\n\n### SSLCommerz process flow\n\n![alt text](https://developer.sslcommerz.com/assets/images/banner/sslc_process.png \"Process flow\") ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahabubulhasan%2Fsslcommerz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahabubulhasan%2Fsslcommerz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahabubulhasan%2Fsslcommerz/lists"}