{"id":19195284,"url":"https://github.com/fixate/payu_za","last_synced_at":"2025-09-02T12:42:38.497Z","repository":{"id":56887646,"uuid":"37918243","full_name":"fixate/payu_za","owner":"fixate","description":"PayU ZA Enterprise SOAP API integration","archived":false,"fork":false,"pushed_at":"2015-06-24T16:07:12.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T07:48:36.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/fixate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-23T12:39:52.000Z","updated_at":"2015-06-24T12:29:20.000Z","dependencies_parsed_at":"2022-08-21T00:20:45.644Z","dependency_job_id":null,"html_url":"https://github.com/fixate/payu_za","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fixate/payu_za","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fpayu_za","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fpayu_za/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fpayu_za/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fpayu_za/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fixate","download_url":"https://codeload.github.com/fixate/payu_za/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fixate%2Fpayu_za/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273287339,"owners_count":25078569,"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-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2024-11-09T12:09:30.614Z","updated_at":"2025-09-02T12:42:38.416Z","avatar_url":"https://github.com/fixate.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PayuZa\n\nPayU ZA Enterprise SOAP API integration\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'payu_za'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install payu_za\n\n## Usage\n\n### Initializer\n\n```ruby\nPayUZa.configure do |c|\n  c.soap_username = ENV['PAYU_SOAP_USERNAME']\n  c.soap_password = ENV['PAYU_SOAP_PASSWORD']\n  c.safe_key = ENV['PAYU_SAFE_KEY']\n  # Be sure to set your environment to :production in prod - defaults to :staging\n  c.environment = :production # or :staging or Rails.env.to_sym\n\n  # Other configuration\n  # Set the default api version (can be overriden per request)\n  # c.api_version = \"ONE_ZERO\"\n  #\n  # Set password_digest to true to prevent your password being sent in clear text\n  # Defaults to false because not sure if PayU supports wsse password digest\n  # c.password_digest = true\n  #\n  # Set your own wsdls - not sure why anyone would ever need this\n  # c.wsdl_endpoints = {\n  #    development: 'https://localhost:12345/?wsdl',\n  #    production: 'https://my-proxy.com/wsdl'\n  # }\nend\n```\n\n### DoTransaction Example\n\n```ruby\nclient = PayUZa::Client.new\n\nadditional_info = client.new_struct(:additional_information, {\n  merchantReference: '12345',\n  payUReference: 'abcdefg1234'\n})\n\ntransaction = client.new_struct(:do_transaction, {\n  TransactionType: PayUZa::Structs::TRANSACTION_TYPE::PAYMENT,\n  AuthenticationType: PayUZa::Structs::AUTHENTICATION_TYPE::NA,\n  AdditionalInformation: additional_info\n  # etc ...\n})\n\n# Object style\ncreditcard = client.new_struct(:credit_card)\ncreditcard.cardNumber = '4242424242424242'\ncreditcard.cardExpiry = '122013'\n\ntransaction.Creditcard = creditcard\n\nresponse = client.execute(transaction)\n# or you can pass in a hash\nresponse = client.execute(:do_transaction, {\n  Api: 'ONE_ZERO',\n  SafeKey: '12345'\n  # ...\n})\n\n```\n\nSupports `do_transaction`, `set_transaction` and `get_transaction`\n\n## Contributing\n\n1. Fork it ( https://github.com/fixate/payu_za/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixate%2Fpayu_za","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffixate%2Fpayu_za","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffixate%2Fpayu_za/lists"}