{"_id":"com.payumoney.sdkui.cordova","_rev":"29-fcd5e7000d0c804ad57d993678b8525a","name":"com.payumoney.sdkui.cordova","dist-tags":{"latest":"1.2.4"},"versions":{"1.1.1":{"name":"com.payumoney.sdkui.cordova","version":"1.1.1","description":"PayUmoney PNP Plugin","cordova":{"id":"com.payumoney.sdkui.cordova","platforms":["ios","android"]},"keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","gitHead":"d09a5cc8054f4b1f3817de019b5572ae1836675c","_id":"com.payumoney.sdkui.cordova@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"shoaib.khan","email":"shoaib.khan@payu.in"},"dist":{"integrity":"sha512-NSZP9UEAuTLTvyFljdouigqhvATlfhBN4HQIZNfJkB6F4n46gGQSPXeYQrY+ALOFQs8Gy5SrehlNYi5ZxbUvSw==","shasum":"e9fde68332e3e8f738d70f5feb4621ee9534cca2","tarball":"https://registry.npmjs.org/com.payumoney.sdkui.cordova/-/com.payumoney.sdkui.cordova-1.1.1.tgz","fileCount":94,"unpackedSize":18102298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkhCyCRA9TVsSAnZWagAAc6MP/jOCM36Jil/hsdDVIPGm\n7/dDtqPF5Lvfp7+Ziayyz5JIWsdmzrioi0br/LxvYgx0S6Mn2S9wtL129iJx\n18E0DtXs2fUz0noDjdsgysB27tnlDem4hjjsCwHFtVRFyOjsCjglu17rbuLf\nPjqWniQ+9YwAQP6fDEWWupYhE7kE8Zp/kfecPHflKnSfAw10Lz77i1x2so/7\nExszD6koZe16HIOIZn+by9oFUXG58Lb8hb2IFMW+PBl1RwycL4r19W4f5rS6\no3X+bmrJkMOQ+xUBz9iSfSNPQlfNEDS8r1rpmukWawsD9qWUEIxxN73BVHCG\nbRUKTCO2HIfeFpfW3Kq1fcv10ZErKzEdBFTqR/qgagM7PJHpRDgLU00QgIJm\nfFaOL2aziC42RTTcq+fc/Ds7WeBI3i3Iwf0ZjEBwT3j51MJMQHAISYWfVwEg\nog9f9nY8VlIf2REYSVXY6Yju9ShSASEvotl1w0jBld/zfWiivzLq8kcwtTI2\nUIgUj4wuuy/uzcjFhG26guFo+52P1ucvevHSZRSkBhDTcM4jHFEKwDyb0IeX\nFlZSNfSwI3Wj2KNiFtT07xCsRInXR8qoi1E4ViywvYhuXRIDrtwjB5yEVm+M\npCewAtQxPpj++fm1/TG+8AyL2pZn7zHkuDuYEvc5eCQY+D0kFV/SDJKk3auZ\nBNt5\r\n=RhJq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDMUfXUnxd/BvkwN99Qq2/jVdslHna6eyPw8ghUpMKwGAiEAs0nASCS6ezQwbpSd/DOvAjcWvCg3H1k7BCx6AmTBB0k="}]},"maintainers":[{"email":"himanshu.gupta@payu.in","name":"himanshu.gupta"},{"email":"rahul.tiwari@payu.in","name":"rahul.tiwari"},{"email":"rajvinder.singh@payu.in","name":"rajvinderpayu"},{"email":"shoaib.khan@payu.in","name":"shoaib.khan"},{"email":"vinay.setia@payu.in","name":"vinay.setia"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/com.payumoney.sdkui.cordova_1.1.1_1536299185803_0.8130949110081758"},"_hasShrinkwrap":false},"1.2.1":{"name":"com.payumoney.sdkui.cordova","version":"1.2.1","description":"PayUmoney PNP Plugin","cordova":{"id":"com.payumoney.sdkui.cordova","platforms":["ios","android"]},"keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","gitHead":"3817638611a25a01d265a1ce6735ea359c77dfa4","_id":"com.payumoney.sdkui.cordova@1.2.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"shoaib.khan","email":"shoaib.khan@payu.in"},"dist":{"integrity":"sha512-UPnvvsC0+DZsrRwDVTa8uCcfVSf/4aHxXIfCDB7rgtpVQbL5qJG9GvRh3ls/b49ROr++CttDErkLwAMe5VY9yg==","shasum":"f3af6b1a9ff594d8257fb191b05da0e202b7974f","tarball":"https://registry.npmjs.org/com.payumoney.sdkui.cordova/-/com.payumoney.sdkui.cordova-1.2.1.tgz","fileCount":146,"unpackedSize":24665186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZR30CRA9TVsSAnZWagAAnmEP/RrxQnYJE1CMbKNySIPS\niIHkez8rdoE7gd2rjy64+4s+wUsnRD5QjI6/9GG5g1AWnEDHgMiQMa+u108M\nO6+DpdY6nLQ/WaLfC1XhboVjCKbgLrfSU9rPYrV3kHhysFf8+Y0GWILjDJgq\n6nmLGDZ+kPkiFTyKS3KeZpJPOmcz9DZ+K0bz9C4+vHVaA6VgP0BEhqkCinQm\n3cqOgqsP61aEViHj/ZGrmt6teBG9GUWuHQAPB00lmJEooceFoUUEVHnprtMS\nAo3+NZr+1p6FTjVW3vy7buEfWYHs6W3e26wVOZnhVIMM+O2Rz+gMgjeAoqd2\ntA/iAZo2W0K4YTWmRIIJxk9MTBZiQLdPafDBGaEe2ELZSuG9uikKdwas3Jwn\n+3aDGYzji70JLh6g8zn7ry5BXHzj0gxI9uBUYsQVvw4hflxCkwYqQNgmcN36\n5NWPGW69nS+BYdCYn1O6hV5Y1HEZBanZQS7gbmQC8zb22iTflwNGdOidtJj/\nSIVVj6hT1yyf4/jWq+Z7G1PGEkotUEwfdU2qw4RN2zrOmrS/tpzBv7UxfF0Y\nNk/80tonI5zW9j4vvSpTePGhqF//My2YXOVQv0kb7AF5UGsW+GugMhEscle1\nNgYea0N8APIH3GkHVFtHOF2z3z0DOTQJ7GsoMoZdBuUfUM8pXMNwlR6UaXCO\n/S29\r\n=95ZC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj+YueNdzA6WkAIve0Rtja+80t8nbPNFP1/Urz6MjFWQIgVht9jLngvLu9KxcuHiezuTmQIz4xDtaiHN4+5IgqOAM="}]},"maintainers":[{"email":"gautam.mandsorwale@payu.in","name":"gautam_m_payu"},{"email":"himanshu.gupta@payu.in","name":"himanshu.gupta"},{"email":"rahul.tiwari@payu.in","name":"rahul.tiwari"},{"email":"rajvinder.singh@payu.in","name":"rajvinderpayu"},{"email":"shoaib.khan@payu.in","name":"shoaib.khan"},{"email":"vinay.setia@payu.in","name":"vinay.setia"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/com.payumoney.sdkui.cordova_1.2.1_1550130675735_0.10403877230565128"},"_hasShrinkwrap":false},"1.2.2":{"name":"com.payumoney.sdkui.cordova","version":"1.2.2","description":"PayUmoney PNP Plugin","cordova":{"id":"com.payumoney.sdkui.cordova","platforms":["ios","android"]},"keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","gitHead":"d91d2f4ded7cc0861c91a95a5dcf1015be675fc7","_id":"com.payumoney.sdkui.cordova@1.2.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-NNcND0Cv6bpKcxhPN6mIoWTvsbq/pKzy/GiNtF9ux/o6Bw+ClxvG+7ujhxca+UKlmS1Vr0LMoU/3za4/cK9oyQ==","shasum":"527e63f37b20a9ba62599e36eb9f261ab280ea08","tarball":"https://registry.npmjs.org/com.payumoney.sdkui.cordova/-/com.payumoney.sdkui.cordova-1.2.2.tgz","fileCount":204,"unpackedSize":24790783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBufVCRA9TVsSAnZWagAALhUQAIbmJgWKrziVdtUqknRr\nf1ER/WptIAjLWYWhRSoDhBW29qos2kE6fQzXIYLfa6PllilsrqKF59lEUO0p\nFXP02ihRSC3phyLDWPS+okWkqHKRMVbpg9beJUGi9jrK1aJutdeog0hOfKY3\nlrVVFexwLYJTtvUldpEatrGGQWYzsBcXk/OMiugisLh89nyEKnHxmts6yNhz\nagZ5QDCH9MiuHzMq+KMjC3926/NWdQlcEdlw9EBHiDYsZKKu1WI1jo04S8ZF\naC7ed0gIs2j4DIMWCJP0ZWRqhUWpLuVYlbQw9fI0RKLhpGI36wg/d0bDADFp\n5wZ1hBtfdQgv+MzyqufPjsmM7f+jyXjyfAh/fxlNWmIaRP0cqXu/VfVDS87Z\nI9/hgVJVWQCVKbSVbc83NALkdCJNaif0Vvd++g0Ccc3+8KEI8pq4UTv2cSOs\n+pODZww6mB/HvnouecgRQwda5j/wdN4wCAhoni8ujRCzAUAsagLHn1AweYbf\ngMNuEPi0iL72r86kTcQISVviCBcDoyUoun4E5wFObrmocF4DAKMrN7aJ+HFk\nGZ0uqg4I08YVuTaS4RgUfFB3PQdAKuRKopFMPwX5iq4dtArcGyQVEfXgX3Y7\n/RnSn1ikjHwTaQjEL62byL2UfcTy9okYCuKQhu6fERsnpF9T3pyYa36XEHrE\newHW\r\n=73ZY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEc8qiCslbhggw30hK9Ogq4PaC6xMM6ywJBH1ycYCxPcAiEAwHKqyVnR3oWIPYUy8LLe3tSkrfbTWkMOv9BVa4xR2H4="}]},"maintainers":[{"email":"himanshu.gupta@payu.in","name":"himanshu.gupta"},{"email":"shoaib.khan@payu.in","name":"payu-payments-india"},{"email":"rahul.tiwari@payu.in","name":"rahul.tiwari"},{"email":"rajvinder.singh@payu.in","name":"rajvinderpayu"},{"email":"vinay.setia@payu.in","name":"vinay.setia"}],"_npmUser":{"name":"payu-payments-india","email":"shoaib.khan@payu.in"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/com.payumoney.sdkui.cordova_1.2.2_1594288085082_0.14034319872725054"},"_hasShrinkwrap":false},"1.2.3":{"name":"com.payumoney.sdkui.cordova","version":"1.2.3","description":"PayUmoney PNP Plugin","cordova":{"id":"com.payumoney.sdkui.cordova","platforms":["ios","android"]},"keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","gitHead":"d5ed9126bb84dc8424775b83af8efd981a5b8d40","_id":"com.payumoney.sdkui.cordova@1.2.3","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-CqUP/kmh1TtLyzoOUiDIq+kQW1fpg+FbPPN4rkRnAtq3wx9hjuBCJ1paEMMiRSpLNexRswpnam+qR8kcMWQhIg==","shasum":"74699e46fcd1ba94b791776d3f0714d647dc59ff","tarball":"https://registry.npmjs.org/com.payumoney.sdkui.cordova/-/com.payumoney.sdkui.cordova-1.2.3.tgz","fileCount":204,"unpackedSize":24790783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBvQ/CRA9TVsSAnZWagAAz78P/3HcABMPvBRriZnMM/ft\nzAmvDcYE3lRb07CzAEvw//M3GccZs05lM+UWixy2QXcoUG+XleZAFo6MQIva\njCVSM7+T8nsMuiD6BHNN75d2qiq1mO2bANACwuJ2f1hGikP82Q7HOt4upeXG\nlkXUo8WwU6cpj6DDCyqKnA4qcMGX1SgbBlTCMxzpcfFLMAibC1nme0UyoCwg\n8wzC82kjR5k4mHzTdso24+pv32W3Zs/AXn8HK2aDEVkIrHwlik7/iZRvhKiq\ngK7icI14ZLXRmxZ6ZG4PYBZhhaH0Vv86iUW46reXxF1+7rKeXpPYOOGz7+Jq\nWNNBhK3u1qr1zR9V3KlPT0FY77cIq5i9F6VP9hl4pS0Oc1sf/uDINNxUyCp0\n7/QFo0Gf5vJ4YLBDnkV1wD6yUQJQlAybVRStEAnxhbbP28O6+iwiPzEpilDi\nY1CEbIuDlbua41+7NI9/2pXCHdoJrvNFOHpF4ZjO+eSJWfjMJhNDwxltx9OS\nkci00Sl1QoMNaxtWNvrElWsTFcVXLB2W3Kous30uYwf6zelxkKyTCJe2q6gG\n2U8180/BqW6rb/zMEYTmWJuXwaQ/igmsw5+L61HfikgrZJ22ALtyewNCavQY\nyQcixsmI+vK4OepRRFANXoDJuKHoX5UmqURN4IoaBGYYPRjUOxK9DNd9UFgL\nPocC\r\n=Soh5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEGvhXopcuboi1vGb+Sa+1bM0QYPQMxbTKEePfvHItpwIhAI2gzWgADLnU/IpWsWZGvBXEO2eI/HszQ0BbjPeo/dB7"}]},"maintainers":[{"email":"himanshu.gupta@payu.in","name":"himanshu.gupta"},{"email":"shoaib.khan@payu.in","name":"payu-payments-india"},{"email":"rahul.tiwari@payu.in","name":"rahul.tiwari"},{"email":"rajvinder.singh@payu.in","name":"rajvinderpayu"},{"email":"vinay.setia@payu.in","name":"vinay.setia"}],"_npmUser":{"name":"payu-payments-india","email":"shoaib.khan@payu.in"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/com.payumoney.sdkui.cordova_1.2.3_1594291263112_0.23939115385428122"},"_hasShrinkwrap":false},"1.2.4":{"name":"com.payumoney.sdkui.cordova","version":"1.2.4","description":"PayUmoney PNP Plugin","cordova":{"id":"com.payumoney.sdkui.cordova","platforms":["ios","android"]},"keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","gitHead":"10ec48b729de8197d81210d2f7a28373637fa317","_id":"com.payumoney.sdkui.cordova@1.2.4","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-/xLIC2d/EWpmd2ySXtb4CMJ+ZcORcAuQpskfYCKyQa/RZHj4IrERaTRvDU4kkZaoPJUf6X1Ljuqym1bOxHD+7w==","shasum":"15f4c766adb7f0ff043a12749d32e319fa0fde3d","tarball":"https://registry.npmjs.org/com.payumoney.sdkui.cordova/-/com.payumoney.sdkui.cordova-1.2.4.tgz","fileCount":204,"unpackedSize":24789503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfafaPCRA9TVsSAnZWagAA8bAP/0WvPnR/yu5Sf7dZokys\nv8XA3hL4VCUYZ3Z4a5pexrT64aEYeKRjalI4QrMS5azuHCy2iyze5TlSiXUF\nzwNEoLqLBpclMNUe4I22xM6LUM5RhVDbiWtupW/L5Waxl+hgQ8Hxxc7jsI4s\nJ4KBlJwDXQ82vTDkcdC0FVAvt+DZE5SxUNSebowu1NRIFaIdClSN5zkvKPSW\n4WlXLAhKT8Cwxjv7QilC9A7tCSNx3tc+oaT6onc3IwNKH3AKEIpX0uh+TbvT\nOIWiUMrfKkYOBCFyXNU63aWicibKRAwC9SQPo95nSwgVUFkc9a3lUUeUrZFV\nJ95PJxTkg44ObpqKA65g0+l5eU310wAEHetsXEcLcbXyqbahZB5Jik1EoS/a\n8W2gG+/IDT2j9b+dWflpOrOAErNcyztH9VT8c7xvoN4+LfNoj4RDUuMYJLGY\nCwzI3WXunWZqYcDQWTlPedYobvq+wBOKYuAKt0PS2GxOlBfgprmSChwVG8Lv\nM4Aqf2PXQBZ85IUdPpcVhjhk76Sg0SaoC/mLYf/Nzqvi2mWu0UijsHlIoM3n\nXmcgcRSNVKX6Oc7QXI09SKk3WPyiJLDOq0niaEoluvAkKAomRHl0B9uYzfTq\nvKlakHzGQBxeCEO9cJ4XaBxpKZoPgCEku5kO4SF2fyrexvjqqRgWYlL7tS+W\nQ5CP\r\n=x0BE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeNQ5uqGUj5j81Lo4DViMxs00V3glVcllxzP74NoeoGAiBWz0eHup9VyAQsEpI4/UntKH4P1LfGr7i7NdOLT1zsqw=="}]},"maintainers":[{"name":"payu-payments-india","email":"shoaib.khan@payu.in"},{"name":"himanshu.gupta","email":"himanshu.gupta@payu.in"},{"name":"rahul.tiwari","email":"rahul.tiwari@payu.in"},{"name":"vinay.setia","email":"vinay.setia@payu.in"},{"name":"rajvinderpayu","email":"rajvinder.singh@payu.in"}],"_npmUser":{"name":"payu-payments-india","email":"shoaib.khan@payu.in"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/com.payumoney.sdkui.cordova_1.2.4_1600779918686_0.6567354278772397"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-08T06:43:54.524Z","0.0.1":"2018-08-08T06:43:56.476Z","modified":"2022-11-07T16:36:46.964Z","0.0.9":"2018-08-14T11:47:05.031Z","1.0.0":"2018-08-14T12:32:39.227Z","1.0.1":"2018-08-20T08:13:00.623Z","1.1.0":"2018-09-07T05:14:50.231Z","1.1.1":"2018-09-07T05:46:26.277Z","1.2.0":"2019-02-05T04:30:21.911Z","1.2.1":"2019-02-14T07:51:16.200Z","1.2.2":"2020-07-09T09:48:05.523Z","1.2.3":"2020-07-09T10:41:03.474Z","1.2.4":"2020-09-22T13:05:19.350Z"},"maintainers":[{"email":"rajan.shukla@payu.in","name":"rajan.shukla"},{"email":"shubham.garg@payu.in","name":"garg8shubh"},{"email":"shoaib.khan@payu.in","name":"payu-payments-india"},{"email":"vinay.setia@payu.in","name":"vinay.setia"},{"email":"rajvinder.singh@payu.in","name":"rajvinderpayu"}],"description":"PayUmoney PNP Plugin","keywords":["ecosystem:cordova","cordova-ios","cordova-android"],"author":{"name":"PayU Payments Private Limited"},"license":"Apache 2.0","readme":"**PayUMoney PnP SDK Cordova Plugin** \nIntroduction \nThe Cordova plugin for the PayUmoney SDK enables merchants to accept payments in their Android and iOS app through the native PayUmoney SDK. Once integrated, the plugin allows apps written on Cordova to access the functionality provided by the native SDK. \n \n**Features of the PayUmoney SDK**  \nThe PayUmoney Mobile SDK is a complete, out of the box solution to accept payments in your Android or iOS mobile app. The SDK provides a robust set of features to accept payments easily through an easy to use, intuitive checkout experience. \n\nKey features of the PayUmoney SDK are: \n- Accept payments through 100+ payment options \n- Ready to use, native checkout experience for a secure and robust payment journey \n- User friendly features such as Saved Cards, Order Review, and OTP Assist \n\n**Get the plugin** \nTo add the plugin to your Cordova development project, execute the following command from the console: \n```\n$ cordova plugin add com.payumoney.sdkui.cordova@1.2.4\n```\n \n \n**Integrating the SDK with your app**\nThe PayUmoney Cordova plugin adds 2 JavaScript files to your project: \n`PayUMoneyPNPPlugin.js`: A wrapper around the native SDK. You can use the functions and classes defined in this script. \n\n`PayU-Helper.js`: A helper file which defines the `PUMTxnParam`, `PUMStyle` and `PUMEnvironment` classes for use with `PayUmoneyPnP`. \n\nTo integrate with the PayUmoney SDK, you will need to include the PayU-Helper.js file in your index.html located as `<app_name>/www/index.html` \n\nIn the index.html, add the following line after the statement importing the `cordova.js` file: \n<script type=\"text/javascript\" src=\"js/PayU-Helper.js\"></script> \n Ensure that the PayU-Helper.js file is located in the `js` folder in your project’s source directory. \n  \nAfter adding the Plugin files, you need to instantiate the PayUmoney.  \n \nUser can use below mentioned methods in your code: \n\n```\nshowPaymentUI: function(payment) { \n    var merchantID = '<#Your_Merchant_ID#>'; // eg merchantID = '5805351' \n    var key = '<#Your_Merchant_Key#>'; // eg key = '0P61t4V0' \n    var txnId = '<#Unique_Transaction_ID#>'; // eg txnId = 'aklsdj213asdasd231'. It should be unique everytime \n    var amount = '123'; \n    var phoneNumber = '912*******'; // Provide valid number of user to fetch saved cards \n    var email = 'abc@de.com'; // Provide valid email of user to fetch saved cards \n    var userFirstName = 'UserFirstName '; \n    var environment_value = shouldUseTestEnv ? PUMEnvironment.PUMEnvironmentTest : PUMEnvironment.PUMEnvironmentProduction; // select your Environment \n    var sURL = '<#Your_Success_URL#>'; \n    var fURL = '<#Your_Failure_URL#>'; \n    var product_description = '<#Your_Product_description#>'; \n    // Create a PUMTxnParam object passing it the parameters declared above. The UDF parameters are optional User Defined Fields \n    var txnParam = new PUMTxnParam(key, merchantID, txnId, amount, phoneNumber, email, userFirstName, sURL, fURL, product_description, environment_value, udf1, udf2, udf3, udf4, udf5, udf6, udf7, udf8, udf9, udf10); \n \n\ttxnParam.hashValue = '<#Hash_Value_For_Current_Transaction#>';  \n \n\t// Call the plugin’s method showPaymentView by passing it the txnParam. This will show the checkout screen and give the success callback if the txnParam is created correctly, else it will call the failure callback \n\t// 1st parameter is a success callback, \n\t// 2nd parameter is a failure callback,\n\t// 3rd parameter is the txnParam \n\tcordova.plugins.PayUmoneyPnP.showPaymentView(\n\tfunction(response) { \n\t\tconsole.log('showPaymentView received Success '); \n\t\talert(JSON.stringify(response)); \n\t}, \n\tfunction (response){ \n\t\tconsole.log('showPaymentView received Failure'); \n\t\talert(JSON.stringify(response)); \n\t}, \n\ttxnParam ); \n } \n ```\n**About the Callbacks** -\nThe success & failure callbacks in the showPaymentView( ) method return a json object. \n In case of a successful transaction, this json object will contain details of the payment like status, transactionId, amount, date, payment instrument, etc.\n In case of a failure, the the json object will be of the type:\n ```\n {\n   \"status\":\"failure\",\n   \"error_Message\": <The error message>\n}\n```\nExamples of error messages -\n- If the plugin is unable to obtain the transaction status - \"Transaction Failed. Status not received\"\n- If the plugin is unable to retrieve the transaction data - \"Transaction Failed. No response data\"\n- When user cancels a transaction - \"Transaction Cancelled\"\n\n**Order Details -**\n Optional - Call this method if you want an optional ‘Order Details’ UI available to the user. A button will be shown on the Checkout screen. Clicking this button will show an Order Details screen \n\n```\n setOrderDetails : function () { \n\t\t// Create an array of Order Detail elements as shown in the example below. This will get displayed in 2 columns in the Order Details Screen \n         var orderDetails = [{\"From\":\"Delhi\"},{\"To\":\"Pune\"},{\"Date\":\"18-02-2018\"},{\"Time\":\"08:45\"},{\"Total\":\"4123.45\"}]; \n \n\t\t// 1st parameter is a success callback, \n\t\t// 2nd parameter is a failure callback, \n\t\t// 3rd parameter is the orderDetails  \n\t\tcordova.plugins.PayUmoneyPnP.orderDetails( \n\t\t\tfunction (response) { \n\t\t\t\tconsole.log('Order details received Success '); \n\t\t\t}, \n\t\t\tfunction (response) { \n\t\t\t\tconsole.log('Order details received Failure '.concat(response)); \n\t\t\t}, \n\t\t\torderDetails); \n\t\t} \n} \n ```\n \n \n**Setting the app theme -**  \nSince setting the theme is handled differently for iOS & Android, you need to call different plugin APIs for setting them. \n ```\n// Set iOS App theme \n       setiOSAppTheme : function() { \n         var topBarColor = '0A927A'; \n         var topTitleTextColor = 'ffffff'; \n         var buttonColor = '0A927A'; \n         var buttonTextColor = 'ffffff'; \n \n\t\t\t// 1st parameter is a success callback, \n\t\t\t// 2nd parameter is a failure callback, \n\t\t\t// remaining parameters are colors defined above. \n         cordova.plugins.PayUmoneyPnP.setiOSAppTheme( \n\t        function (response) {\n\t\t         console.log('setiOSAppTheme received Success);\n\t\t\t\t}, \n\t\t\t\tfunction (response){\n\t\t\t\t\tconsole.log('setiOSAppTheme received Failure '.concat(response) );\n\t\t\t\t},\n\t\t\t\ttopBarColor,topTitleTextColor,buttonColor,buttonTextColor); \n            } \n       } \n ```\n     \nSet Android App theme -\n ``` \n setAndroidAppThemeName: function() { \n         var themeName = '<#Your_Theme_Name#>' ; // e.g. 'AppTheme.Green’. Define this theme in your styles.xml as shown. If invalid, Plugin will select a default theme. \n \n\t\t// 1st parameter is a success callback, \n\t\t// 2nd parameter is a failure callback,\n\t\t// 3rd parameter is the themeName \n\t    cordova.plugins.PayUmoneyPnP.setAndroidAppThemeName( \n\t\t\tfunction (response) {\n\t\t\t\tconsole.log('setAndroidAppThemeName received Success '); \n         }, \n\t\t    function (response){\n\t\t\t\tconsole.log('setAndroidAppThemeName received Failure '.concat(response) );\n\t\t\t}, \n\t\t\tthemeName );\n} \n\n// Example of styles.xml \n \n<style name=\"AppTheme.Green\" parent=\"PayumoneyAppTheme\"> \n        <item name=\"colorPrimary\">@color/persian_green_primary</item> // Define these colors in colors.xml \n        <item name=\"colorPrimaryDark\">@color/persian_green_dark</item> \n        <item name=\"colorAccent\">@color/persian_green_accent</item> \n        <item name=\"colorButtonNormal\">@color/persian_green_primary</item> \n        <item name=\"alertDialogTheme\">@style/AlertDialogStyle_green</item> \n        <item name=\"actionMenuTextColor\">@color/white</item> \n    </style> \n \n// Another example \n<style name=\"AppTheme.pink\" parent=\"PayumoneyAppTheme\"> \n        <item name=\"colorPrimary\">@color/pink_primary</item> \n        <item name=\"colorPrimaryDark\">@color/pink_dark</item> \n        <item name=\"colorAccent\">@color/pink_accent</item> \n        <item name=\"colorButtonNormal\">@color/pink_primary</item> \n        <item name=\"alertDialogTheme\">@style/AlertDialogStyle_pink</item> \n        <item name=\"actionMenuTextColor\">@color/white</item> \n    </style> \n ```","readmeFilename":"README.md"}