{"id":24780399,"url":"https://github.com/webgriffe/lib-quipago","last_synced_at":"2026-01-16T02:52:16.351Z","repository":{"id":62547715,"uuid":"63043430","full_name":"webgriffe/lib-quipago","owner":"webgriffe","description":"Webgriffe QuiPago (Key Client) PHP library","archived":false,"fork":false,"pushed_at":"2024-07-08T09:06:29.000Z","size":103,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-15T02:26:54.443Z","etag":null,"topics":["cartasi","nexi","payment","payment-method","payment-methods","php-library","quipago","webgriffe"],"latest_commit_sha":null,"homepage":null,"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/webgriffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-07-11T06:44:01.000Z","updated_at":"2024-07-08T09:04:37.000Z","dependencies_parsed_at":"2024-06-10T09:31:26.022Z","dependency_job_id":"1ef2cf3d-799a-44b3-8966-dde0fb625d80","html_url":"https://github.com/webgriffe/lib-quipago","commit_stats":{"total_commits":86,"total_committers":8,"mean_commits":10.75,"dds":0.4418604651162791,"last_synced_commit":"bd7d85294161a6d249471706855dbc24fab9ee14"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/webgriffe/lib-quipago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Flib-quipago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Flib-quipago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Flib-quipago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Flib-quipago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/lib-quipago/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Flib-quipago/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010259,"owners_count":26084719,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cartasi","nexi","payment","payment-method","payment-methods","php-library","quipago","webgriffe"],"created_at":"2025-01-29T10:30:21.076Z","updated_at":"2025-10-12T04:31:14.373Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Webgriffe QuiPago (Key Client/CartaSì) PHP library\n==========================================\n\n[![Build Status](https://travis-ci.org/webgriffe/lib-quipago.svg?branch=master)](https://travis-ci.org/webgriffe/lib-quipago)\n\nA PHP library for Nexi/QuiPago (Key Client/CartaSì) payment gateway.\n\nUsage\n-----\n\nYou can generate a payment initialization URL using the `UrlGenerator`:\n\n\t$urlGenerator = new Webgriffe\\LibQuiPago\\PaymentInit\\UrlGenerator();\n\t$url = $urlGenerator-\u003egenerate(\n\t\t'https://ecommerce.nexi.it/ecomm/ecomm/DispatcherServlet',\n        'merchant_alias',\n        'secret_key',\n        'sha1',\n        50.50,\n        '1200123',\n        'http-cancel-url', // The URL where the user is redirected on failed payment\n        'customer@mail.com',\n        'http-succes-url', // The URL where the user is redirected on successful payment\n        'SESSID123',\n        'ITA',\n        'http-post-url' // The URL for the server-to-server notification\n\t);\n\t\n\t// Returned $url is https://ecommerce.nexi.it/ecomm/ecomm/DispatcherServlet?alias=merchant_alias\u0026importo=5050\u0026divisa=EUR\u0026codTrans=1200123\u0026url_back=http-cancel-url\u0026mail=customer%40mail.com\u0026url=http-succes-url\u0026session_id=SESSID123\u0026languageId=ITA\u0026urlpost=http-post-url\u0026mac=0fa0ca05a13c6b5d0bd1466461319658f7f990bf\n\t\nYou can also handle a server-to-server notification by QuiPago using the notification `Handler`:\n\n\t// These request params array comes from the QuiPago's HTTP notification request\n\t$requestParams = array(\n        'codTrans' =\u003e '1200123',\n        'esito' =\u003e 'OK',\n        'importo' =\u003e '5050',\n        'divisa' =\u003e 'EUR',\n        'data' =\u003e '20160221',\n        'orario' =\u003e '181854',\n        'codAut' =\u003e '123abc',\n        'mac' =\u003e 'c83cee2a5422189cab2b54ef685b29dc428741dc',\n        'alias' =\u003e 'merchant_123',\n        'session_id' =\u003e '123123',\n        '$BRAND' =\u003e 'Visa',\n        'nome' =\u003e 'John',\n        'cognome' =\u003e 'Doe',\n        'mail' =\u003e 'jd@mail.com',\n    );\n    \n    $handler = new Webgriffe\\LibQuiPago\\Notification\\Handler();\n    $handler-\u003ehandle('secret_key', 'sha1', $requestParams)\n    \n    // You'll get all parameters mapped    \n    $handler-\u003egetTransactionCode(); // '1200123'    \n    $handler-\u003egetAmount(); // 50.50\n    $handler-\u003egetCurrency(); //'EUR'\n    $handler-\u003egetTransactionDate(); // \\DateTime('21/02/2016 18:18:54')\n    $handler-\u003egetAuthCode(); // '123abc'\n    $handler-\u003egetMacFromRequest(); // 'c83cee2a5422189cab2b54ef685b29dc428741dc'\n    $handler-\u003egetMerchantAlias(); // 'merchant_123'\n    $handler-\u003egetSessionId(); // '123123'\n    $handler-\u003egetCardBrand(); // 'Visa'\n    $handler-\u003egetFirstName(); // 'John'\n    $handler-\u003egetLastName(); // 'Doe'\n    $handler-\u003egetEmail(); // 'jd@mail.com'\n    \n    // And you know if the transaction has been authorized or not by calling\n    $handler-\u003eisTransactionResultPositive(); // true\n\nYou can inject a `Psr\\Log\\LoggerInterface` logger to both `Webgriffe\\LibQuiPago\\PaymentInit\\UrlGenerator` and `Webgriffe\\LibQuiPago\\Notification\\Handler` to enable logging of internal operations.\n\nECREQ/ECRES API\n---------------\n\nYou can also send *ECREQ* messages through API `Client` and receive *ECRES* response messages. Capture and void methods are supported:\n\n\trequire 'vendor/autoload.php';\n\n    $client = new Webgriffe\\LibQuiPago\\Api\\Client(\n        new GuzzleHttp\\Client(),\n        'payment_3444153',\n        'TLGHTOWIZXQPTIZRALWKG',\n        'Manu'\n    );\n    \n    /** @var Webgriffe\\LibQuiPago\\Api\\EcResponse $response */\n    $response = $client-\u003ecapture(\n        '000000123', // Transaction Code\n        Webgriffe\\LibQuiPago\\Api\\EcRequest::REQUEST_TYPE_FIRST_ATTEMPT,\n        '000000123', // Operation Id\n        105, // Original Amount\n        '978', // Currency ISO code\n        'TESTOK', // Auth Code\n        105, // Operation Amount\n        true // Is test request?\n    );\n    \n    /** @var Webgriffe\\LibQuiPago\\Api\\EcResponse $response */\n    $response = $client-\u003evoid(\n        '000000123', // Transaction Code\n        Webgriffe\\LibQuiPago\\Api\\EcRequest::REQUEST_TYPE_FIRST_ATTEMPT,\n        '000000123', // Operation Id\n        105, // Original Amount\n        '978', // Currency ISO code\n        'TESTOK', // Auth Code\n        105, // Operation Amount\n        true // Is test request?\n    );\n\nSee the `Webgriffe\\LibQuiPago\\Api\\EcResponse` class to know which data you can retrive from that object.\n\nContributing\n------------\n\n* clone this repo\n* composer install\n* do your changes\n* vendor/bin/phpspec run\n* vendor/bin/phpcs --standard=PSR2 src/\n* submit a pull request\n\nLicense\n-------\n\nThis library is under the MIT license. See the complete license in the LICENSE file.\n\nCredits\n-------\n\nDeveloped by [Webgriffe®](http://www.webgriffe.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Flib-quipago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Flib-quipago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Flib-quipago/lists"}