{"id":24761643,"url":"https://github.com/driebit/mod_payment","last_synced_at":"2025-03-23T13:16:03.482Z","repository":{"id":46829298,"uuid":"208269055","full_name":"driebit/mod_payment","owner":"driebit","description":"Payment module","archived":false,"fork":false,"pushed_at":"2024-12-17T10:37:17.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-28T19:18:35.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/driebit.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":"support/payment_export.erl","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-13T13:21:22.000Z","updated_at":"2024-12-17T10:37:32.000Z","dependencies_parsed_at":"2024-12-17T11:37:00.706Z","dependency_job_id":null,"html_url":"https://github.com/driebit/mod_payment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driebit","download_url":"https://codeload.github.com/driebit/mod_payment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104528,"owners_count":20561380,"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":[],"created_at":"2025-01-28T19:18:37.585Z","updated_at":"2025-03-23T13:16:02.678Z","avatar_url":"https://github.com/driebit.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Payments module for Zotonic\n===========================\n\nBase module for handling payments. Uses Payment Service Provider (PSP) modules for interfacing with\nthe payment providers.\n\n\nPayment form\n------------\n\nTo add a payment form to your website, make a form with the following postback:\n\n    {% wire id=\"mypayment\" type=\"submit\" postback={payment key=\"web-donation\"} delegate=`mod_payment %}\n    \u003cform id=\"mypayment\" method=\"post\" action=\"postback\"\u003e\n        ...\n    \u003c/form\u003e\n\nOptional arguments of the payment postback:\n\n * `key` - an identification of the payment type, also shown on the overview in the admin\n * `amount` - the amount to be paid, overrules the `amount` form field\n * `currency` - the currency for the amount, overrules `currency` form field (defaults to EUR)\n * `is_recurring_start` - if the payment is recurring, overrules `is_recurring_start` form field (defaults to false)\n * `user_id` - the id of the user the payment is for (defaults to the current user)\n * `description` - the description for the ordered goods/services (HTML)\n * `default_description` - used as the description if both `description` and `q.description` are empty\n * All other arguments are saved as additional properties, which can be overruled with form fields\n\nRequired fields for the payment form:\n\n * `amount` - if there is no amount in the postback, an integer of floating point number\n * `email` - email address (defaults to current user's)\n * `name_surname` - surname, required if there is no user_id (defaults to current user's)\n\nOptional fields for the payment form:\n\n * `currency` - if there is no currency in the postback, the used currency, defaults to `EUR`\n * `is_recurring_start` - flag if the payment should be a recurring payment, defaults to `false` (see section below)\n * `name_first` - first name (defaults to current user's)\n * `phone` - phone number (defaults to current user's)\n * `address_street_1` - First line of address (defaults to current user's)\n * `address_street_2` - Second line of address (defaults to current user's)\n * `address_city` - City of address (defaults to current user's)\n * `address_state` - State of address (defaults to current user's)\n * `address_postcode` - Postcode of address (defaults to current user's)\n * `address_country` - Country of address, should be two letter ISO code (defaults to current user's)\n * `description` - Description of what has been ordered, could also be a referral identifier\n\nSubscriptions / Recurring Payments\n----------------------------------\n\nSubscriptions are recurring payments.\nAll subscriptions *MUST* have an user_id attached.\n\nThe period of the recurring payment (monthly / yearly) is user-defined and should be explained\nto the user in explanatory texts. The used PSP should know about this period as well.\n\nThe module `mod_payment` only initiates the first payment. Any subsequent payments should be initiated\nby the used PSP.\n\nAny user can have at most one (1) subscription.\n\nThe subscription can be canceled with the following postback:\n\n    {% wire id='cancel-subscription-button'\n            postback={cancel_subscription}\n    %}\n\n\nPSP Modules\n-----------\n\nThis module provides the central payment administration. Interfacing with Payment Service Providers (PSP)\nis done using PSP specific modules.\n\nCurrent PSP specific module implements a payment interface to Mollie:\n\n    https://github.com/driebit/mod_payment_mollie\n\nPlease check the modules for PSP specific configurations.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriebit%2Fmod_payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_payment/lists"}