{"id":27398768,"url":"https://github.com/imanx/zarinpal-ios-payment","last_synced_at":"2026-04-24T22:36:04.314Z","repository":{"id":97364297,"uuid":"114129816","full_name":"ImanX/zarinpal-ios-payment","owner":"ImanX","description":"Zarinpal iOS SDK Payment ","archived":false,"fork":false,"pushed_at":"2021-09-08T11:57:08.000Z","size":532,"stargazers_count":1,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T08:43:28.848Z","etag":null,"topics":["framework","ios","payment-gateway","swift","zarinpal","zarinpal-payment-service"],"latest_commit_sha":null,"homepage":null,"language":"C","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/ImanX.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":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-13T14:19:57.000Z","updated_at":"2021-09-08T11:57:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1722e876-d4ce-4206-9a94-9fdb8c920a3f","html_url":"https://github.com/ImanX/zarinpal-ios-payment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ImanX/zarinpal-ios-payment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImanX%2Fzarinpal-ios-payment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImanX%2Fzarinpal-ios-payment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImanX%2Fzarinpal-ios-payment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImanX%2Fzarinpal-ios-payment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ImanX","download_url":"https://codeload.github.com/ImanX/zarinpal-ios-payment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ImanX%2Fzarinpal-ios-payment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework","ios","payment-gateway","swift","zarinpal","zarinpal-payment-service"],"created_at":"2025-04-14T01:48:41.601Z","updated_at":"2026-04-24T22:36:04.278Z","avatar_url":"https://github.com/ImanX.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Repo and Project has been DEPRECATED and Archived please check [iOS-SDK](https://github.com/ZarinPal/iOS-SDK)\n\n\n# ZarinPal iOS SDK Payment \nPayment request and Automatic verification in Clinet \n\n\n       \n# How to add Framework to my Project?\nSimply Install by Cocoapods and use it!\n\n- NOTE: Framework Updated to Swift 4.1 Version Compile.\n- NOTE: Fix Amount DataType\n- NOTE: Supported iOS 10 to higher\n\n#  How to Install Pod?\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.5+ is required\n\nTo integrate ZarinPal SDK into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n       pod 'ZarinPalSDKPayment', '~\u003e 0.2.4'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n\n# Example\n\n```Swift\n       \nimport ZarinPalSDKPayment \u003c= import this.\nclass ViewController: UIViewController , ZarinPalPaymentDelegate {\n   \n   func didSuccess(refID: String, authority: String, builder: ZarinPal.Builder) {\n                       //when Payment is Success and return:\n                       //refID: this is transaction id.\n                       //authority: this is a payment unique id\n                       //payment : included payment details ex: amount , description\n       print(refID);\n   }\n   \n   func didFailure(code: Int, authority: String?) {\n    //when Payment is failure and return:\n                       //status : ZarinPal failure codes\n                       //authority: this is a payment unique id\n       print(code);\n   }\n  \n   \n   @IBAction func click(_ sender: Any) {\n       \n       let zarinpal =   ZarinPal.Builder(vc: self, merchantID: \"****************\", amount: 100, description: \"description\");\n      \n       zarinpal.indicatorColor = UIColor.black;  //this set indicator color *optional\n       zarinpal.title = \"Payment Gateway\";  //this set title of payment page *optional\n       zarinpal.pageBackgroundColor = UIColor.lightGray; // this set background payment color *optional\n       zarinpal.email = \"email@gmail.com\"; //this set email *optional\n       zarinpal.mobile = \"09355106005\"; //this set mobile *optional\n       zarinpal\n           .build()\n           .start(delegate: self);\n       \n   }\n  \n\n   override func viewDidAppear(_ animated: Bool) {\n   \n  \n   }\n\n   override func didReceiveMemoryWarning() {\n       super.didReceiveMemoryWarning()\n       // Dispose of any resources that can be recreated.\n   }\n\n\n}\n       \n       \n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimanx%2Fzarinpal-ios-payment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimanx%2Fzarinpal-ios-payment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimanx%2Fzarinpal-ios-payment/lists"}