{"id":41587272,"url":"https://github.com/mpay24/mpay24-php","last_synced_at":"2026-01-24T09:08:24.898Z","repository":{"id":36185527,"uuid":"40489701","full_name":"mpay24/mpay24-php","owner":"mpay24","description":"Offical mPAY24 PHP SDK","archived":false,"fork":false,"pushed_at":"2024-02-20T09:12:35.000Z","size":1469,"stargazers_count":12,"open_issues_count":7,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-27T10:52:43.482Z","etag":null,"topics":["mpay24","payment","php","soap"],"latest_commit_sha":null,"homepage":"","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/mpay24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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-10T15:19:29.000Z","updated_at":"2023-04-05T09:37:53.000Z","dependencies_parsed_at":"2024-06-18T17:12:57.810Z","dependency_job_id":null,"html_url":"https://github.com/mpay24/mpay24-php","commit_stats":{"total_commits":222,"total_committers":16,"mean_commits":13.875,"dds":0.6756756756756757,"last_synced_commit":"16b31926483e045f71320b19163664f9e3ccab82"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/mpay24/mpay24-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpay24%2Fmpay24-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpay24%2Fmpay24-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpay24%2Fmpay24-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpay24%2Fmpay24-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpay24","download_url":"https://codeload.github.com/mpay24/mpay24-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpay24%2Fmpay24-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28722147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["mpay24","payment","php","soap"],"created_at":"2026-01-24T09:08:24.132Z","updated_at":"2026-01-24T09:08:24.890Z","avatar_url":"https://github.com/mpay24.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpay24-php\n\n[![Packagist](https://img.shields.io/github/license/mpay24/mpay24-php.svg)](https://packagist.org/packages/mpay24/mpay24-php)\n[![Packagist Version](https://img.shields.io/packagist/v/mpay24/mpay24-php)](https://packagist.org/packages/mpay24/mpay24-php)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/mpay24/mpay24-php)](https://packagist.org/packages/mpay24/mpay24-php)\n\nOffical PHP SDK for SOAP Bindings\n\n## Documentation\n\nA short demo implementation guide is available at https://docs.mpay24.com/docs/get-started\u003c/br\u003e\nDocumentation is available at https://docs.mpay24.com/docs.\n\n## Composer\n\nYou can install the bindings via [Composer](http://getcomposer.org/). Run the following command:\n\n```bash\ncomposer require mpay24/mpay24-php\n```\n\nTo use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):\n\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n```\n\n## Manual Installation\n\nIf you do not want to use Composer, you can download the [latest release](https://github.com/mpay24/mpay24-php/releases). Then, to use the bindings, include the `bootstrap.php` file.\n\n```php\nrequire_once('bootstrap.php');\n```\n\n## SDK overview\n\n#### Configuration\n\nYou can use the config.php file in the root directory\n\nYou also can handover the parameters while crating the Mpay24 Object\n\n```php\nrequire_once(\"../bootstrap.php\");\nuse Mpay24\\Mpay24;\nuse Mpay24\\Mpay24Order; //if you are using paymentPage\n\n$mpay24 = new Mpay24('9****', '*********', TRUE); //Testsystem\n$mpay24 = new Mpay24('7****', '*********', FALSE); //Livesystem\n\n```\n\nIf you want to have a more flexible approach you can create a [configuration object](https://github.com/mpay24/mpay24-php/wiki/Configuring-the-php-sdk).\n\n#### Create a token for seamless creditcard payments\n\n```php\n$tokenizer = $mpay24-\u003etoken(\"CC\");\n$tokenizerLocation = $tokenizer-\u003egetLocation();\n$token = $tokenizer-\u003egetToken();\n```\n\n#### Create a payment\n\n[Creditcard payment with a token](https://docs.mpay24.com/docs/tokenizer-integration)\n```php\n$payment = array(\n  \"amount\" =\u003e \"100\",\n  \"currency\" =\u003e \"EUR\",\n  \"token\" =\u003e $_POST['token']\n);\n$result = $mpay24-\u003epayment(\"TOKEN\", \"123 TID\", $payment);\n```\n[Paypal payment](https://docs.mpay24.com/docs/paypal)\n```php\n$payment = array(\n  \"amount\" =\u003e \"100\",\n  \"currency\" =\u003e \"EUR\"\n);\n$result = $mpay24-\u003epayment(\"PAYPAL\", \"123 TID\", $payment);\n```\n\n#### Create a payment page\n\n[Initialize a minimum payment page](https://docs.mpay24.com/docs/redirect-integration)\n```php\nuse Mpay24\\Mpay24Order;\n\n$mdxi = new Mpay24Order();\n$mdxi-\u003eOrder-\u003eTid = \"123\";\n$mdxi-\u003eOrder-\u003ePrice = \"1.00\";\n$mdxi-\u003eOrder-\u003eURL-\u003eSuccess      = 'http://yourpage.com/success';\n$mdxi-\u003eOrder-\u003eURL-\u003eError        = 'http://yourpage.com/error';\n$mdxi-\u003eOrder-\u003eURL-\u003eConfirmation = 'http://yourpage.com/confirmation';\n\n$paymentPageURL = $mpay24-\u003epaymentPage($mdxi)-\u003egetLocation(); // redirect location to the payment page\n\nheader('Location: '.$paymentPageURL);\n```\n\n[How to work with ORDER objects](https://github.com/mpay24/mpay24-php/wiki/How-to-work-with-ORDER-objects)\n\n#### Get current transaction status\n[Using the Pull method](https://docs.mpay24.com/docs/payment-notification#section-pull-method)\n\nWith the unique mPAYTID number that we send back in the response messages\n```php\n$mpay24-\u003epaymentStatus(\"12345\");\n```\n\nWith the TID that we received by the merchant request\n*If you don't have unique TID you will only get the last transaction with this number*\n```php\n$mpay24-\u003epaymentStatusByTID(\"123 TID\");\n```\n\n### Prerequisites\n\nIn order for the Mpay24 PHP SDK to work, your installation will have to meet the following prerequisites:\n\n* [PHP \u003e= 7.2](http://www.php.net/)\n* [cURL](http://at2.php.net/manual/de/book.curl.php)\n* [DOM](http://at2.php.net/manual/de/book.dom.php)\n\nPlease refer to http://www.php.net/phpinfo or consult your systems administrator in order to find out if your system fulfills the prerequisites.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpay24%2Fmpay24-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpay24%2Fmpay24-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpay24%2Fmpay24-php/lists"}