{"id":33980662,"url":"https://github.com/webburza/payum-setefi","last_synced_at":"2025-12-13T03:28:12.742Z","repository":{"id":57078924,"uuid":"77210802","full_name":"webburza/payum-setefi","owner":"webburza","description":"A Payum gateway for Setefi payment processor.","archived":false,"fork":false,"pushed_at":"2017-11-30T13:45:57.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-27T16:46:33.712Z","etag":null,"topics":["payment-gateway","payment-integration","payment-processing","payum","setefi","sylius"],"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/webburza.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-12-23T08:30:42.000Z","updated_at":"2017-11-30T10:19:02.000Z","dependencies_parsed_at":"2022-08-24T14:56:21.255Z","dependency_job_id":null,"html_url":"https://github.com/webburza/payum-setefi","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/webburza/payum-setefi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webburza%2Fpayum-setefi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webburza%2Fpayum-setefi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webburza%2Fpayum-setefi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webburza%2Fpayum-setefi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webburza","download_url":"https://codeload.github.com/webburza/payum-setefi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webburza%2Fpayum-setefi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699624,"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-12-13T02:00:09.769Z","response_time":147,"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":["payment-gateway","payment-integration","payment-processing","payum","setefi","sylius"],"created_at":"2025-12-13T03:28:12.187Z","updated_at":"2025-12-13T03:28:12.734Z","avatar_url":"https://github.com/webburza.png","language":"PHP","readme":"# Setefi Payum gateway\n\nA [Payum](https://payum.forma-pro.com/) gateway for [Setefi](http://www.setefi.it/) payment processor.\n\n**Note:** all [user IDs, passwords and secrets listed are documented by Setefi](https://www.servizi.monetaonline.it/documenti/monetaweb/MonetaWeb%202.0%20-%20Technical%20Documentation.pdf) *(section \"TEST ENVIRONMENT CREDENTIALS\"*) and shared with all other Setefi sandbox users, they're NOT a secret. \n\n## Sylius Integration\n\n```yaml\n# app/config/config.yml\nparameters:\n    # NOTE:\n    # these are documented by Setefi and shared among all sandbox users, they're NOT a secret\n    setefi.id: \"99999999\"\n    setefi.password: \"99999999\"\n    setefi.sandbox: true # false in config_prod.yml\n\npayum:\n    gateways:\n        setefi:\n            factory: \"setefi\"\n            payum.http_client: \"@sylius.payum.http_client\"\n            terminal_id: \"%setefi.id%\"\n            terminal_password: \"%setefi.password%\"\n            sandbox: \"%setefi.sandbox%\"\n\nsylius_payment:\n    gateways:\n        setefi: Setefi\n```\n\nAfter having done this, enable the payment method in the Sylius admin interface.\n\n*(**Note:** Any testing of the integration **must** be done on a public-accessible URL (ie. by using [ngrok](https://ngrok.com/)) because Setefi backend needs to be able to do valid server-to-server requests for the process to complete successfully.)* \n\n## Setefi sandbox environment \n\nLog in to [Setefi's sandbox environment](https://test.monetaonline.it/monetaweb/backoffice):\n\n*(**Note:** these are documented by Setefi and shared among all sandbox users, they're NOT a secret)*\n\n- *Codice Commerciante:* `009999999`\n- *Codice Utente:* `009999999`\n- *Password:* `Setefi14`\n\nNote that your transactions will be among all other sandbox's users' transactions, you need to find your own to verify it works.\n\n## Technical implementation\n\n* Entrypoint is [`Webburza\\Payum\\Setefi\\SetefiGatewayFactory`](src/SetefiGatewayFactory.php) which registers all known actions, sets up config and creates a new `Api`.\n* [`Webburza\\Payum\\Setefi\\Api`](src/Api.php) is a collection of helpers and constants specific to this provider, it gets injected to all actions implementing `Payum\\Core\\ApiAwareInterface`.\n* Every action has a specific task and they declare on which part of the process they work on by implementing `support($request)` from `Payum\\Core\\Action\\ActionInterface`. The action name itself does not matter.  \n  For example, `Webburza\\Payum\\Setefi\\Action\\CancelAction` declares it can handle `Payum\\Core\\Request\\Cancel` request and it will receive all those types of requests to handle.  \n  **Action and the request are two different things**, you can (and do) have much more actions than you do request types (some gateways have no custom request types).\n* We can also define some custom request types such as [`Webburza\\Payum\\Setefi\\Request\\CreateTransaction`](src/Request/CreateTransaction.php) for situations where domain-specific events need to happen. After having defined them, we register actions to handle them the same way we do native actions.\n\n## Transaction sequence\n\n1. `Webburza\\Payum\\Setefi\\Action\\StatusAction` marks the payment request as `new`\n2. `Webburza\\Payum\\Setefi\\Action\\CaptureAction` triggers `Webburza\\Payum\\Setefi\\Request\\CreateTransaction` request\n3. a new Setefi transaction is created using `Webburza\\Payum\\Setefi\\Action\\CreateTransactionAction` and a server-to-server (S2S) request\n4. if successful, the user is redirected to Setefi web interface\n5.\n    1. if payment successful, Setefi does a S2S request and `Webburza\\Payum\\Setefi\\Action\\StatusAction` marks the payment request as `captured`  \n    2. if payment not successful, Setefi does a S2S request and `Webburza\\Payum\\Setefi\\Action\\StatusAction` marks the payment request as `canceled`\n6. response to 5. is a valid redirect URL for Setefi to redirect to user back to\n7. process complete\n\n![Transaction sequence](http://www.plantuml.com/plantuml/proxy?src=https://raw.githubusercontent.com/webburza/payum-setefi/master/docs/transaction.puml#3)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebburza%2Fpayum-setefi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebburza%2Fpayum-setefi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebburza%2Fpayum-setefi/lists"}