{"id":23401031,"url":"https://github.com/juspay/ec-headless-cordova-pulgin","last_synced_at":"2025-04-11T19:12:11.070Z","repository":{"id":57123419,"uuid":"172687208","full_name":"juspay/ec-headless-cordova-pulgin","owner":"juspay","description":"Express Checkout Cordova Integration / Headless Plugin","archived":false,"fork":false,"pushed_at":"2020-07-17T03:24:42.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T21:05:17.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/juspay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-26T10:12:06.000Z","updated_at":"2020-07-17T03:24:45.000Z","dependencies_parsed_at":"2022-08-24T14:59:35.238Z","dependency_job_id":null,"html_url":"https://github.com/juspay/ec-headless-cordova-pulgin","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fec-headless-cordova-pulgin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fec-headless-cordova-pulgin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fec-headless-cordova-pulgin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fec-headless-cordova-pulgin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juspay","download_url":"https://codeload.github.com/juspay/ec-headless-cordova-pulgin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465346,"owners_count":21108244,"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":"2024-12-22T11:14:08.100Z","updated_at":"2025-04-11T19:12:11.049Z","avatar_url":"https://github.com/juspay.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhoneGap app integration \nJusPay has a native android and iOS client which can be used by PhoneGap applications. To get started, you first need to download the code for the plugin.\n\n## Installation \nThis requires phonegap/cordova CLI 5.0+\n\nAdd the plugin to your phonegap/cordova apps using these commands.\n\n```sh\n$ phonegap plugin add @juspay/ec-headless-cordova-plugin\n```\n(or)\n```sh\n$ cordova plugin add @juspay/ec-headless-cordova-plugin\n```\n\n\n## Dependencies \n\n#### For Android \n\nTo add or change ec-hl-cordova-plugin specific dependencies, refer this file. \n```sh\nplatforms/android/ec-hl-cordova-plugin/\u003cappname\u003e-_plugin-dependencies.gradle\n```\n\n#### For iOS \n\nMinimum supported iOS version: 9.0\n\nIf you are getting the pod error like `Failed to install 'ec-hl-cordova-plugin': Error: pod: Command failed with exit code 1` while installing \"ec-hl-cordova-plugin\" for ios, please update `platform :ios` to '9.0' in the Podfile and run the command `pod install`.\n\n\n## Usage \n\n```sh\n  var nbPayload = {\n                  opName: \"nbTxn\",\n                  paymentMethodType: \"NB\",\n                  paymentMethod: \"enter bank code\", // Eg: NB_SBI\n                  redirectAfterPayment: \"true\",\n                  format: \"json\"\n                }\n  //Here payload format is specified for netbanking transaction. For other operations, refer \n  [EC SDK Doc - Android](https://developer.juspay.in/docs/android)\n  [EC SDK Doc - iOS](https://developer.juspay.in/docs/ios-payments-sdk-integration)\n\n  var requestPayload = {\n            baseParams: {\n              merchant_id: \"pass merchant id\",\n              client_id: \"pass client id\",\n              transaction_id: \"pass transaction id\", //optional\n              order_id: \"pass order id\",\n              amount: \"amount\", //eg: \"1.00\"\n              customer_id : \"pass customer id\",\n              customer_email : \"pass email\",\n              customer_phone_number : \"pass phone number\",\n              environment: \"pass environment\" //eg: \"sandbox\" or \"prod\"\n            },\n            serviceParams: {\n              service: \"in.juspay.ec\",\n              session_token: \"pass client auth token\",\n              end_urls: [], //eg: [\"https://www.reload.in/recharge/\", \".*www.reload.in/payment/f.*\"]\n              payload: JSON.stringify(nbPayload)\n            },\n            customParams: {}, //customParams are optional key value pairs. { udf_circle: \"Andhra Pradesh\" }\n            onSuccess: function (successResponse) {\n              console.log(\"Success Response\", successResponse);\n            },\n            onError: function (errorResponse) {\n              console.log(\"Error Response\", errorResponse);\n            }\n     }\n  var expressCheckout = new ExpressCheckout();\n  expressCheckout.startPayment(requestPayload);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fec-headless-cordova-pulgin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuspay%2Fec-headless-cordova-pulgin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fec-headless-cordova-pulgin/lists"}