{"id":36996007,"url":"https://github.com/rootindex/peach-oppwa","last_synced_at":"2026-01-13T23:48:21.965Z","repository":{"id":57037293,"uuid":"63052046","full_name":"rootindex/peach-oppwa","owner":"rootindex","description":"Peach Payments OPPWA php library","archived":false,"fork":false,"pushed_at":"2016-07-11T09:55:50.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-16T07:11:50.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rootindex.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":"2016-07-11T08:49:30.000Z","updated_at":"2021-06-22T10:31:34.000Z","dependencies_parsed_at":"2022-08-23T21:00:30.228Z","dependency_job_id":null,"html_url":"https://github.com/rootindex/peach-oppwa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rootindex/peach-oppwa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootindex%2Fpeach-oppwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootindex%2Fpeach-oppwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootindex%2Fpeach-oppwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootindex%2Fpeach-oppwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootindex","download_url":"https://codeload.github.com/rootindex/peach-oppwa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootindex%2Fpeach-oppwa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-01-13T23:48:21.870Z","updated_at":"2026-01-13T23:48:21.945Z","avatar_url":"https://github.com/rootindex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peach\\Oppwa Library\n## Peach Payments OPPWA php library\n\n### Examples:\n\nThere is three ways to configure the client.\n\n```php\n$config = new \\Peach\\Oppwa\\Configuration(\n    'set_your_user_id',\n    'set_your_password',\n    'set_your_entity_id'\n);\n\n$client = new \\Peach\\Oppwa\\Client($config);\n\n```\n\n```php\n$client = new \\Peach\\Oppwa\\Client([\n    'set_your_user_id',\n    'set_your_password',\n    'set_your_entity_id']\n);\n```\n```php\n$client = new \\Peach\\Oppwa\\Client(\n    'set_your_user_id',\n    'set_your_password',\n    'set_your_entity_id'\n);\n```\n\nIf you wish to use the test server.\n\n```php\n    $client-\u003esetTestMode(true);\n```\n\nAll responses will contain an isSuccess method to check if the result was successful\n\n```php\nif ($response-\u003eisSuccess()) {\n // was successful\n}\n```\n\nGetting a payment status.\n\n```php\n$paymentStatus = new \\Peach\\Oppwa\\Payments\\Status($client);\n$paymentStatusResult = $paymentStatus\n    -\u003esetTransactionId('8a82944a55c5c6620155ca4667222d20')\n    -\u003eprocess();\n\nvar_dump(json_decode((string)$paymentStatusResult, JSON_PRETTY_PRINT));\n```\n\nStoring a card.\n\n```php\n$storeCard = new \\Peach\\Oppwa\\Cards\\Store($testClient);\n$storeCardResult = $storeCard-\u003esetCardBrand(\\Peach\\Oppwa\\Cards\\Brands::MASTERCARD)\n    -\u003esetCardNumber('5454545454545454')\n    -\u003esetCardHolder('Jane Jones')\n    -\u003esetCardExpiryMonth('05')\n    -\u003esetCardExpiryYear('2018')\n    -\u003esetCardCvv('123')\n    -\u003eprocess();\n```\nDeleting a saved card.\n```php\n$cardDelete = new \\Peach\\Oppwa\\Cards\\Delete($testClient);\n$cardDelete-\u003esetTransactionId($storeCardResult-\u003egetId());\n$cardDeleteResult = $cardDelete-\u003eprocess();\n```\n\nDoing a full debit.\n```php\n$debit = new \\Peach\\Oppwa\\Payments\\Debit($testClient);\n$debitResult = $debit\n    -\u003esetCardBrand(\\Peach\\Oppwa\\Cards\\Brands::MASTERCARD)\n    -\u003esetCardNumber('5454545454545454')\n    -\u003esetCardHolder('Jane Jones')\n    -\u003esetCardExpiryMonth('05')\n    -\u003esetCardExpiryYear('2018')\n    -\u003esetCardCvv('123')\n    -\u003esetAmount(95.99)\n    -\u003esetCurrency('EUR')\n    -\u003esetAuthOnly(false)\n    -\u003eprocess();\n```\n\n\nDoing a pre-auth only.\n```php\n$preAuthorization = new \\Peach\\Oppwa\\Payments\\Debit($testClient);\n$preAuthorizationResult = $preAuthorization\n    -\u003esetCardBrand(\\Peach\\Oppwa\\Cards\\Brands::MASTERCARD)\n    -\u003esetCardNumber('5454545454545454')\n    -\u003esetCardHolder('Jane Jones')\n    -\u003esetCardExpiryMonth('05')\n    -\u003esetCardExpiryYear('2018')\n    -\u003esetCardCvv('123')\n    -\u003esetAmount(95.99)\n    -\u003esetCurrency('EUR')\n    -\u003esetAuthOnly(true)\n    -\u003eprocess();\n```\n\nDoing a capture.\n```php\n$capture = new \\Peach\\Oppwa\\Payments\\Capture($testClient, $preAuthorizationResult-\u003egetId(), '95.99', 'EUR');\n$captureResult = $capture-\u003eprocess();\n```\n\nDoing a reversal (please note no value or currency provided).\n```php\n$reverse = new \\Peach\\Oppwa\\Payments\\Reverse($testClient, $captureResult-\u003egetId());\n$reverseResult = $reverse-\u003eprocess();\n```\nDoing a refund (please note I DID provide a value and currency)\n```php\n$reverse = new \\Peach\\Oppwa\\Payments\\Reverse($testClient, $captureResult-\u003egetId(), '50', 'EUR');\n$reverseResult = $reverse-\u003eprocess();\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootindex%2Fpeach-oppwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootindex%2Fpeach-oppwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootindex%2Fpeach-oppwa/lists"}