{"id":14974614,"url":"https://github.com/softon/indipay","last_synced_at":"2025-04-05T05:07:55.706Z","repository":{"id":36069043,"uuid":"40368372","full_name":"softon/indipay","owner":"softon","description":"The Laravel Framework Package for Indian Payment Gateways. Currently Supported Gateway: CCAvenue, PayUMoney, EBS, CitrusPay ,ZapakPay (Mobikwik), Paytm, InstaMojo , Mocker","archived":false,"fork":false,"pushed_at":"2024-02-20T04:02:42.000Z","size":83,"stargazers_count":64,"open_issues_count":14,"forks_count":84,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-30T07:46:13.504Z","etag":null,"topics":["ccavenue-laravel","citruspay-laravel","ebs-laravel","instamojo-laravel","laravel-5-package","laravel-package","laravel55","mocker-laravel","payment-gateway","payment-integration","paytm-laravel","payumoney-laravel","zapakpay-laravel"],"latest_commit_sha":null,"homepage":"http://softon.github.io/indipay","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ferranabello/Viperit","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2015-08-07T15:52:54.000Z","updated_at":"2024-09-19T18:47:53.000Z","dependencies_parsed_at":"2022-08-08T13:01:23.202Z","dependency_job_id":"3c05a9b3-88a8-4435-9039-f6c9d29ec30c","html_url":"https://github.com/softon/indipay","commit_stats":{"total_commits":38,"total_committers":9,"mean_commits":4.222222222222222,"dds":0.2894736842105263,"last_synced_commit":"60b599f1ada6c396bb2a5e2e4f96ac99559b82ed"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Findipay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Findipay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Findipay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Findipay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softon","download_url":"https://codeload.github.com/softon/indipay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"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":["ccavenue-laravel","citruspay-laravel","ebs-laravel","instamojo-laravel","laravel-5-package","laravel-package","laravel55","mocker-laravel","payment-gateway","payment-integration","paytm-laravel","payumoney-laravel","zapakpay-laravel"],"created_at":"2024-09-24T13:50:48.933Z","updated_at":"2025-04-05T05:07:55.685Z","avatar_url":"https://github.com/softon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IndiPay\nThe Laravel 5+ Package for Indian Payment Gateways. Currently supported gateway: \u003ca href=\"http://www.ccavenue.com/\"\u003eCCAvenue\u003c/a\u003e, \u003ca href=\"https://www.payumoney.com/\"\u003ePayUMoney\u003c/a\u003e, \u003ca href=\"https://www.ebs.in\"\u003eEBS\u003c/a\u003e, \u003ca href=\"http://www.citruspay.com/\"\u003eCitrusPay\u003c/a\u003e ,\u003ca href=\"https://pay.mobikwik.com/\"\u003eZapakPay\u003c/a\u003e (Mobikwik), \u003ca href=\"https://dashboard.paytm.com/\"\u003ePaytm\u003c/a\u003e, \u003ca href=\"http://mocker.in\"\u003eMocker\u003c/a\u003e\n\n\u003ca href=\"https://github.com/softon/indipay/tree/laravel4\"\u003eFor Laravel 4.2 Package Click Here\u003c/a\u003e\n\n\u003ch2\u003eInstallation\u003c/h2\u003e\n\u003cb\u003eStep 1:\u003c/b\u003e Install package using composer\n\u003cpre\u003e\u003ccode\u003e\n    composer require softon/indipay\n\u003c/pre\u003e\u003c/code\u003e\n\n\u003cb\u003eStep 2:\u003c/b\u003e Add the service provider to the config/app.php file in Laravel (Optional for Laravel 5.5+)\n\u003cpre\u003e\u003ccode\u003e\n    Softon\\Indipay\\IndipayServiceProvider::class,\n\u003c/pre\u003e\u003c/code\u003e\n\n\u003cb\u003eStep 3:\u003c/b\u003e Add an alias for the Facade to the config/app.php file in Laravel (Optional for Laravel 5.5+)\n\u003cpre\u003e\u003ccode\u003e\n    'Indipay' =\u003e Softon\\Indipay\\Facades\\Indipay::class,\n\u003c/pre\u003e\u003c/code\u003e\n\n\u003cb\u003eStep 4:\u003c/b\u003e Publish the config \u0026 Middleware by running in your terminal\n\u003cpre\u003e\u003ccode\u003e\n    php artisan vendor:publish --provider=\"Softon\\Indipay\\IndipayServiceProvider\" \n\u003c/pre\u003e\u003c/code\u003e\n\n\u003cb\u003eStep 5:\u003c/b\u003e Modify the app\\Http\\Kernel.php to use the new Middleware. \nThis is required so as to avoid CSRF verification on the Response Url from the payment gateways.\n\u003cb\u003eYou may adjust the routes in the config file config/indipay.php to disable CSRF on your gateways response routes.\u003c/b\u003e\n\n\u003e NOTE: You may also use the new `VerifyCsrfToken` middleware and add the routes in the `$except` array.\n\n\u003cpre\u003e\u003ccode\u003eApp\\Http\\Middleware\\VerifyCsrfToken::class,\u003c/code\u003e\u003c/pre\u003e\nto\n\u003cpre\u003e\u003ccode\u003eApp\\Http\\Middleware\\VerifyCsrfMiddleware::class,\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2\u003eUsage\u003c/h2\u003e\n\nEdit the config/indipay.php. Set the appropriate Gateway parameters. Also set the default gateway to use by setting the `gateway` key in config file. Then in your code... \u003cbr\u003e\n\u003cpre\u003e\u003ccode\u003e use Softon\\Indipay\\Facades\\Indipay;  \u003c/code\u003e\u003c/pre\u003e\nInitiate Purchase Request and Redirect using the default gateway:-\n```php \n      /* All Required Parameters by your Gateway will differ from gateway to gateway refer the gate manual */\n      \n      $parameters = [\n        'transaction_no' =\u003e '1233221223322',\n        'amount' =\u003e '1200.00',\n        'name' =\u003e 'Jon Doe',\n        'email' =\u003e 'jon@doe.com'\n      ];\n      \n      $order = Indipay::prepare($parameters);\n      return Indipay::process($order);\n```\n\u003e Please check for the required parameters in your gateway manual. There is a basic validation in this package to check for it.\n\nYou may also use multiple gateways:-\n```php \n      // gateway = CCAvenue / PayUMoney / EBS / Citrus / InstaMojo / ZapakPay / Paytm / Mocker\n      \n      $order = Indipay::gateway('Paytm')-\u003eprepare($parameters);\n      return Indipay::process($order);\n```\nGet the Response from the Gateway (Add the Code to the Redirect Url Set in the config file. \nAlso add the response route to the remove_csrf_check config item to remove CSRF check on these routes.):-\n\u003cpre\u003e\u003ccode\u003e \n    public function response(Request $request)\n    \n    {\n        // For default Gateway\n        $response = Indipay::response($request);\n        \n        // For Otherthan Default Gateway\n        $response = Indipay::gateway('NameOfGatewayUsedDuringRequest')-\u003eresponse($request);\n\n        dd($response);\n    \n    }  \n\u003c/code\u003e\u003c/pre\u003e\nThe `Indipay::response` will take care of checking the response for validity as most gateways will add a checksum to detect any tampering of data. \n\nImportant point to note is to store the transaction info to a persistant database before proceding to the gateway so that the status can be verified later.\n\n## Payment Verification\n\nFrom version v1.0.12 `Indipay` has started implementing verify method in some gateways so that the developer can verify the payment in case of pending payments etc.\n\n```php\n    $order = Indipay::verify([\n        'transaction_no' =\u003e '3322344231223'\n    ]);\n\n```\nThe parameters to be passed, again depends on Gateway used.\n\n\u003e **Verify Feature Currently Supported in** : Paytm, Mocker","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Findipay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofton%2Findipay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Findipay/lists"}