{"id":15939515,"url":"https://github.com/afiqiqmal/rpclient","last_synced_at":"2025-10-19T02:30:32.169Z","repository":{"id":56941697,"uuid":"237916355","full_name":"afiqiqmal/Rpclient","owner":"afiqiqmal","description":"RaudhahPay Gateway PHP Library","archived":false,"fork":false,"pushed_at":"2023-01-05T22:49:52.000Z","size":52,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T08:03:58.257Z","etag":null,"topics":["api","api-client","composer","credit","creditcard","debit","fpx","hacktoberfest","malaysia","payment","payment-gateway","php","raudhah","raudhahpay","wrapper"],"latest_commit_sha":null,"homepage":"","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/afiqiqmal.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":"2020-02-03T08:18:05.000Z","updated_at":"2023-01-03T07:12:27.000Z","dependencies_parsed_at":"2023-02-04T22:02:03.799Z","dependency_job_id":null,"html_url":"https://github.com/afiqiqmal/Rpclient","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FRpclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FRpclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FRpclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afiqiqmal%2FRpclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afiqiqmal","download_url":"https://codeload.github.com/afiqiqmal/Rpclient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237049896,"owners_count":19246941,"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":["api","api-client","composer","credit","creditcard","debit","fpx","hacktoberfest","malaysia","payment","payment-gateway","php","raudhah","raudhahpay","wrapper"],"created_at":"2024-10-07T06:04:56.791Z","updated_at":"2025-10-19T02:30:31.787Z","avatar_url":"https://github.com/afiqiqmal.png","language":"PHP","funding_links":["https://www.paypal.com/paypalme/mhi9388?locale.x=en_US"],"categories":[],"sub_categories":[],"readme":"[![Packagist](https://img.shields.io/packagist/dt/afiqiqmal/Rpclient.svg)](https://packagist.org/packages/afiqiqmal/Rpclient)\n[![Packagist](https://img.shields.io/packagist/v/afiqiqmal/Rpclient.svg)](https://packagist.org/packages/afiqiqmal/Rpclient)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)\n\n\n![alt text](https://banners.beyondco.de/RPClient.png?theme=dark\u0026packageName=afiqiqmal%2Frpclient\u0026pattern=cage\u0026style=style_1\u0026description=It+is+simple+wrapper+class+written+in+php+to+ease+use+of+RaudhahPay+Payment+Gateway\u0026md=1\u0026fontSize=100px\u0026images=cash)\n\n\n# Raudhah Pay Client Library using PHP Framework\n\nIt is simple wrapper class written in php to ease use of [RaudhahPay Payment Gateway](https://www.raudhahpay.com/) \n\n## Directory\n* [Installation](#installation)\n* [Usages](#usages)\n\n## Installation\n\n### Composer\n```\ncomposer require afiqiqmal/rpclient\n```\nAlternatively, you can specify as a dependency in your project's existing composer.json file\n```\n{\n   \"require\": {\n      \"afiqiqmal/rpclient\": \"^1.2.0\"\n   }\n}\n```\n\n\n## Usages\nAfter installing, you need to require Composer's autoloader and add your code.\n\nSetup config\n```$xslt\n$config = [\n    'api_key' =\u003e getenv('RAUDHAH_API_KEY'),\n    'signature_key' =\u003e getenv('RAUDHAH_X_SIGNATURE')\n];\n```\n\nOr use Laravel config file name it as `raudhahpay.php` and leave `make()` blank\n```\nreturn [\n    'api_key' =\u003e env('RAUDHAH_API_KEY'),\n    'signature_key' =\u003e env('RAUDHAH_X_SIGNATURE', null),\n    'is_sandbox' =\u003e env('RAUDHAH_SANDBOX', env('APP_ENV') != 'production'),\n];\n\n```\n\n## Collection\n\n### Create collection\n```$xslt\nRaudhahPay::make()\n    -\u003ecollection()\n    -\u003ecreate(\"Collection Name\");\n```\n\n### Get collections\n```$xslt\nRaudhahPay::make()\n    -\u003ecollection()\n    -\u003efetchList(); \n```\n\n### Update collection name\n```$xslt\nRaudhahPay::make()\n    -\u003ecollection()\n    -\u003eupdateCollectionName(\"CollectionID\", \"New Name\"); \n```\n\n### Get collections by code\n```$xslt\nRaudhahPay::make()\n    -\u003ecollection()\n    -\u003efetchByCode(\"CollectionCode\"); \n```\n\n\n## Bills\n\n### Create Bill\n```$xslt\nRaudhahPay::make()\n    -\u003ebill()\n    -\u003emakeBill(\"COLLECTION CODE\")\n    -\u003esetCustomer(\"Amirul\", \"Amirul\", \"hello@gmail.com\", \"60123456789\", \"Melaka\")\n    -\u003esetReference(\"Testing\")\n    -\u003esetProduct(\"Product 1\", 10.30, 1)\n    -\u003ecreate();\n```\n\n## Products\n\n### Create product\n```$xslt\nRaudhahPay::make()\n    -\u003eproduct()\n    -\u003ecreate(string|array $title/$arrays, string $code, string $description, $price);\n```\n\n### Get products\n```$xslt\nRaudhahPay::make()\n    -\u003eproduct()\n    -\u003egetList();\n```\n\n## Customer\n\n### Create customer\n```$xslt\nRaudhahPay::make()\n    -\u003ecustomer()\n    -\u003ecreate(string|array $firstName/$arrays, string $lastName = null, string $phoneNumber = null, string $email = null);\n```\n\n### Get customers\n```$xslt\nRaudhahPay::make()\n    -\u003ecustomer()\n    -\u003egetList();\n```\n\n## DirectPay\n\n### DirectPay Payee\n```\n$response = RaudhahPay::make()\n    -\u003edirectPay()\n    -\u003epayee(\"COLLECTION CODE\")\n    -\u003egetDirectPays();\n\n```\n\n### DirectPay Payeer\n```\n$response = RaudhahPay::make()\n    -\u003edirectPay()\n    -\u003epayee(\"COLLECTION CODE\")\n    -\u003egetTransactions($direct_pay_payer_code);\n\n```\n\n### Check checksum from Redirect/Webhook\n```$xslt\nRaudhahPay::make()-\u003eisCheckSumValid($payload); //boolean\n```\n\n## Source\n[Raudhah Pay Docs](https://documenter.getpostman.com/view/9723080/SWE57zKG?version=latest)\n\n## Todo\n- Other Raudhah Pay features. Still under development\n- Unit Test \n- Alter Readme\n\n## License\nLicensed under the [MIT license](http://opensource.org/licenses/MIT)\n\n\n\u003ca href=\"https://www.paypal.com/paypalme/mhi9388?locale.x=en_US\"\u003e\u003cimg src=\"https://i.imgur.com/Y2gqr2j.png\" height=\"40\"\u003e\u003c/a\u003e  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiqiqmal%2Frpclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafiqiqmal%2Frpclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafiqiqmal%2Frpclient/lists"}