{"id":32284561,"url":"https://github.com/arshmancodes/paymob_pakistan","last_synced_at":"2025-10-23T01:32:59.399Z","repository":{"id":195960967,"uuid":"694133469","full_name":"arshmancodes/paymob_pakistan","owner":"arshmancodes","description":"A plugin for Flutter to Easily accept Jazzcash/Easypaisa/Card Payments through Paymob Pakistan in your Flutter app.","archived":false,"fork":false,"pushed_at":"2024-01-24T11:58:23.000Z","size":872,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T01:32:55.545Z","etag":null,"topics":["payment-gateway","paymentmethods","plugin"],"latest_commit_sha":null,"homepage":"","language":"C++","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/arshmancodes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-20T11:52:57.000Z","updated_at":"2025-07-19T00:41:18.000Z","dependencies_parsed_at":"2024-01-24T12:30:22.173Z","dependency_job_id":null,"html_url":"https://github.com/arshmancodes/paymob_pakistan","commit_stats":null,"previous_names":["arshmancodes/paymob_pakistan"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arshmancodes/paymob_pakistan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshmancodes%2Fpaymob_pakistan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshmancodes%2Fpaymob_pakistan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshmancodes%2Fpaymob_pakistan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshmancodes%2Fpaymob_pakistan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshmancodes","download_url":"https://codeload.github.com/arshmancodes/paymob_pakistan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshmancodes%2Fpaymob_pakistan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280546393,"owners_count":26348720,"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-10-22T02:00:06.515Z","response_time":63,"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","paymentmethods","plugin"],"created_at":"2025-10-23T01:32:58.393Z","updated_at":"2025-10-23T01:32:59.394Z","avatar_url":"https://github.com/arshmancodes.png","language":"C++","readme":"# paymob_pakistan\n\nEasily accept Jazzcash/Easypaisa/Card Payments through [Paymob Pakistan](https://paymob.pk) in your Flutter app.\n\n\u003c!-- ![Example](https://github.com/AhmedAbogameel/paymob_payment/blob/master/example.gif) --\u003e\n\n## :rocket: Installation\n\nAdd this to `dependencies` in your app's `pubspec.yaml`\n\n```yaml\npaymob_pakistan : latest_version\n```\n\n## :hammer: Initialization\n\n```dart\nPaymobPakistan.instance.initialize(\n  apiKey: \"\", // from dashboard Select Settings -\u003e Account Info -\u003e API Key \n  jazzcashIntegrationId: 123123, // From Dashboard select Developers -\u003e Payment Integrations -\u003e JazzCash Integration ID\n  easypaisaIntegrationID: 123123,  // From Dashboard select Developers -\u003e Payment Integrations -\u003e EasyPaisa Integration ID\n  integrationID: 123456, // from dashboard Select Developers -\u003e Payment Integrations -\u003e Online Card ID \n  iFrameID: 123456, // from paymob Select Developers -\u003e iframes \n);\n```\n\n\u003e :pushpin: Note :\n\u003e\n\u003e You can use this singleton (instance) \n\u003e or \n\u003e Create your own  \n\u003e if you want to create different iFrames or integrations\n```dart\nfinal PaymobPakistan paymobPakistan = PaymobPakistan();\n  paymobPakistan.initialize(\n  apiKey: \"\", \n  jazzcashIntegrationId: 123123, \n  easypaisaIntegrationID: 123123,  \n  integrationID: 123456, \n  iFrameID: 123456, \n);\n```\n\n## :bookmark: Usage\n\n```dart\nfinal PaymobResponse? response = await PaymobPakistan.instance.pay(\n  context: context,\n  currency: \"PKR\",\n  paymentType: PaymentType.card, // or you can User paymentType: PaymentType.jazzcash OR PaymentType.easypaisa\n  amountInCents: \"50000\", // 500 PKR\n  onPayment: (response) =\u003e setState(() =\u003e this.response = response), // Optional\n)\n```\n\n## :incoming_envelope: PaymobResponse\n\n| Variable      | Type    | Description          |\n| ------------- |---------| -------------------- |\n| success       | bool    | Indicates if the transaction was successful or not |\n| transactionID | String? | The ID of the transaction |\n| responseCode  | String? | The response code for the transaction |\n| message       | String? | A brief message describing the transaction |\n\n\n## :test_tube: Testing Cards\n\n#### :white_check_mark: Successful payment\n\n| Variable     | Description      |\n|--------------|------------------|\n| Card Number  | 5123456789012346 |\n| Expiry Month | 12               |\n| Expiry Year  | 25               |\n| CVV          | 123              |\n| Name         | Test Account     |\n\n\n#### :negative_squared_cross_mark: Declined payment\n\nChange cvv to 111 or expiry year to 20\n\n##  Credits\n\n\u003e All API Credits goes to [Paymob Pakistan](https://paymob.pk)\n\n\u003e :pushpin: Note :\n\u003e \n\u003e Visit [Paymob Pakistan](https://paymob.pk) to get your PayMob account for accepting Digital Payments on your Flutter Application.\n\u003e May be you have to contact paymob support to activate your test card \n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshmancodes%2Fpaymob_pakistan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshmancodes%2Fpaymob_pakistan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshmancodes%2Fpaymob_pakistan/lists"}