{"id":15286632,"url":"https://github.com/railken/unicredit","last_synced_at":"2025-10-07T01:31:05.719Z","repository":{"id":56974638,"uuid":"68367863","full_name":"railken/Unicredit","owner":"railken","description":"unicredit library for online payments","archived":true,"fork":false,"pushed_at":"2018-11-06T03:47:22.000Z","size":120,"stargazers_count":6,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T04:34:13.869Z","etag":null,"topics":["composer","example","library","php","unicredit"],"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/railken.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}},"created_at":"2016-09-16T09:29:39.000Z","updated_at":"2024-09-19T17:22:29.000Z","dependencies_parsed_at":"2022-08-21T11:50:52.628Z","dependency_job_id":null,"html_url":"https://github.com/railken/Unicredit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2FUnicredit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2FUnicredit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2FUnicredit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railken%2FUnicredit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railken","download_url":"https://codeload.github.com/railken/Unicredit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235575693,"owners_count":19012156,"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":["composer","example","library","php","unicredit"],"created_at":"2024-09-30T15:17:46.104Z","updated_at":"2025-10-07T01:31:00.221Z","avatar_url":"https://github.com/railken.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unicredit\nA very very very simple library that performs online payments with unicredit.\nThis is more an example than an actual library.\n\n# Links\n[Unicredit Backoffice](https://testeps.netswgroup.it/UNI_CG_BO_WEB/app/login/show)\n\nUser: UNIBO\n\nPassword: UniBo2014\n\n[Unicredit Documentation](https://testeps.netswgroup.it/UNI_CG_BRANDING/UNI/doc/api_manual.pdf)\n\n[Unicredit Assistance](https://trasparenza.unicredit.it/pdfprod/GP49-PAGAMENTI-ELETTRONICI--SERVIZIO-PAGONLINE-CARTE_IT.pdf)\n\nThe original library can be found in the Backoffice under the following path:\n\n```PROFILO ESERCENTE \u003e\u003e Documentazione e Supporto \u003e\u003e API Pack```\n\n\n# Installation\n```\n$ composer require railken/unicredit\n```\n\n# Basic configuration\n\n```php\n\u003c?php\n\nuse Railken\\Unicredit\\Unicredit;\n\n$uc = new Unicredit([\n    'terminal_id' =\u003e 'UNI_ECOM',\n    'api_key' =\u003e 'UNI_TESTKEY',\n    'currency' =\u003e 'EUR',\n    'lang' =\u003e 'IT',\n    'base_url' =\u003e 'https://testuni.netsw.it',\n    'verify_url' =\u003e 'http://localhost/verify.php',\n    'error_url' =\u003e 'http://localhost/error.php'\n]);\n```\n\n\n\n# Checkout page\n\n```php\n\u003c?php\n\nuse Railken\\Unicredit\\Unicredit;\n\n# Make a new instance\n$uc = new Unicredit();\n\n# Create a random ID for an order\n$order_id = md5(time());\n\n# Make a payment for 10,00 EUR\n# Return the Payment ID\n$response = $uc-\u003epayment($order_id, 'email@customer.com', 10);\n\nif (!$response-\u003eerror) {\n    \n    # IMPORTANT !!!    \n    # Save $order_id and $transaction_id in DB or Cookie in order to retrieve in the next page\n\n    # Redirect to the checkout\n    $response-\u003eredirect_url;\n\n}else{\n\t\n    # Get error\n    $error = $response-\u003eerror-\u003emessage;\n}\n\n```\n\n\n# Verify page\n\n```php\n\u003c?php\n\nuse Railken\\Unicredit\\Unicredit;\n\n# Retrieve $transaction_id and $order_id from DB/Cookie\n\n# Make a new instance\n$uc = new Unicredit();\n\n$response = $uc-\u003everify($order_id, $transaction_id);\n\nif (!$response-\u003eerror) {\n\n    # Success\n\n} else {\n    # Get error\n    $error = $response-\u003eerror-\u003emessage;\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailken%2Funicredit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailken%2Funicredit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailken%2Funicredit/lists"}