{"id":18668151,"url":"https://github.com/eonx-com/payment-gateway-php-sdk-v1","last_synced_at":"2026-02-25T10:33:30.039Z","repository":{"id":56978342,"uuid":"135669230","full_name":"eonx-com/payment-gateway-php-sdk-v1","owner":"eonx-com","description":"PHP SDK for Eoneopay","archived":false,"fork":false,"pushed_at":"2020-09-18T23:11:37.000Z","size":547,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-03T00:40:43.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eonx-com.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":"2018-06-01T04:55:38.000Z","updated_at":"2022-09-08T23:23:09.000Z","dependencies_parsed_at":"2022-08-21T11:50:39.019Z","dependency_job_id":null,"html_url":"https://github.com/eonx-com/payment-gateway-php-sdk-v1","commit_stats":null,"previous_names":["loyaltycorp/eoneopay-phpsdk","eonx-com/eoneopay-phpsdk"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/eonx-com/payment-gateway-php-sdk-v1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fpayment-gateway-php-sdk-v1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fpayment-gateway-php-sdk-v1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fpayment-gateway-php-sdk-v1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fpayment-gateway-php-sdk-v1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eonx-com","download_url":"https://codeload.github.com/eonx-com/payment-gateway-php-sdk-v1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eonx-com%2Fpayment-gateway-php-sdk-v1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28299709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T08:21:30.231Z","status":"ssl_error","status_checked_at":"2026-01-11T08:21:26.882Z","response_time":60,"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":[],"created_at":"2024-11-07T08:41:35.187Z","updated_at":"2026-01-11T10:01:36.125Z","avatar_url":"https://github.com/eonx-com.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EoneoPay PHP SDK\n\n## Transactions\n\nThe status of the transaction can be determined using the state property. There are situations where a transaction can\n be approved or completed but reversed at a later time. The state property is the only way to determine the actual state\n of the transaction. A table listing the meaning of each of the state field values is below.\n\n| Value | State | Description |\n|-------|-------| ----------- |\n| 1     | Pending | Request received, pending processing |\n| 2     | Processing | Request is being processed |\n| 10    | Provisionally approved | May be reversed, but funds could be available after clearing |\n| 11    | Approved | Funds will be available after clearing |\n| 90    | Failed/reversed/declined | Funds could not be transferred, and are not available |\n| 80    | Finalised/cleared | Funds have transferred to destination are available |\n\n## Development\n\nMain repository: https://github.com/loyaltycorp/eoneopay-phpsdk\n\n### Adding Entities\n\nEntities are the class types the SDK exposes for serialising before sending to payments in JSON form, and the\nclass type the responses are de-serialised to on response.\n\nEntities are in the `src/Endpoints` directory, under the `EoneoPay\\PhpSdk\\Endpoints` namespace.\n\n#### URIS\n\nURIs list the acceptable actions that can be performed against with a given entity. These can be accessed\n programmatically by calling the `uris()` method on an entity instance.\n\n#### Entity Serialisation / @Groups\n\nThe `@Groups` annotation indicates the which fields which will be serialised before being sent as JSON. The\n annotation uses `Symfony\\Component\\Serializer\\Annotation\\Groups`.\n\nIn the following example, the `$actionUrl` would be serialised when being sent to payments for both `create` and\n `update` calls, but `$amount` will only be sent for the initial `create` call.\n\n\n```php\nuse Symfony\\Component\\Serializer\\Annotation\\Groups;\ntrait SecurityTrait\n{\n    /**\n     * @Groups({\"create\", \"update\"})\n     */\n    protected $actionUrl;\n\n    /**\n     * @Groups({\"create\"})\n     */\n    protected $amount;\n```\n\nThe `@Groups` annotations can be used on the same fields as `@Assert` annotations below.\n\n#### Entity Deserialisation / Validation\n\nValidation is applied to the JSON responses from payments to ensure that the returning fields are valid.\n\nIn the following examples, `$id` must be a string, which can't be null. `$ewallet` must be  de-serialisble to a a valid\n object of the type Ewallet.\n\nNote that the `@var` annotation is used to discover the entity type that the contents of `$ewallet` should be\n  de-serialised to.\n\n```php\nuse Symfony\\Component\\Validator\\Constraints as Assert;\ntrait EwalletFundingTrait\n{\n    /**\n     * @Assert\\NotNull()\n     * @Assert\\Type(type=\"\\EoneoPay\\PhpSdk\\Endpoints\\Ewallet\")\n     * @var \\EoneoPay\\PhpSdk\\Endpoints\\Ewallet|null\n     */\n    protected $ewallet;\n\n    /**\n     * @Assert\\NotNull()\n     * @Assert\\Type(type=\"string\")\n     * @var string|null\n     */\n    protected $id;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Fpayment-gateway-php-sdk-v1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feonx-com%2Fpayment-gateway-php-sdk-v1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feonx-com%2Fpayment-gateway-php-sdk-v1/lists"}