Skip to content

Commit a3714f9

Browse files
committed
updated
1 parent 59d8321 commit a3714f9

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

README.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
1-
# codeeshop-cespay-cordova
2-
codeeshop-cespay-cordova
1+
# Code-E-Shop Custom Payment Plugin Cordova
2+
3+
Cordova Custom Payment Gateway Integration with In-App Browser
4+
5+
This Cordova plugin helps you to be able to use any Payment Gateway haveing Succeess and Failed Callback URL to return response with your Cordova hybrid application. This plugin supports Android.
6+
7+
## Installation:
8+
9+
Add the plugin in your cordova application with the following command.
10+
11+
`cordova plugin add cordova-codeeshop-cespay`
12+
13+
It is also possible to install the plugin via repo url directly
14+
15+
`cordova plugin add https://github.com/codeeshop-oc/cordova-codeeshop-cespay.git`
16+
17+
## Usage:
18+
19+
Before using application do add another dependent cordova plugin
20+
[cordova-plugin-inappbrowser](https://www.npmjs.com/package/cordova-plugin-inappbrowser)
21+
22+
```
23+
sodexopay.startPayment({
24+
url: 'YOUR_PAYMENT_REDIRECT_URL',
25+
callbackErrorURL: 'YOUR_PAYMENT_FAILURE_URL',
26+
callbackSuccessURL: 'YOUR_PAYMENT_SUCCESS_URL'
27+
})
28+
```
29+
30+
### All Params
31+
32+
Method: startPayment
33+
34+
| Prop name | Description | Type | Values | Default |
35+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | --------------------- | ------------ |
36+
| url | YOUR_PAYMENT_REDIRECT_URL | String | - | https://pay.gw.zetapay.in/ |
37+
| target | key to be used to show listing data ( just one ) | String | - | _blank |
38+
| options | Cordova Plugin Options ( cordova-plugin-inappbrowser ) | String | [Options](https://github.com/apache/cordova-plugin-inappbrowser#example-1) | location=no,hidenavigationbuttons=yes,hideurlbar=yes,hardwareback=no,fullscreen=yes |
39+
| callbackSuccessURL | YOUR_PAYMENT_FAILURE_URL | String | - | success |
40+
| callbackErrorURL | YOUR_PAYMENT_SUCCESS_URL | String | - | failed |
41+
42+
## 🔖 License
43+
44+
This software is licensed under the [MIT](https://github.com/codeeshop-oc/vue-full-autocomplete/blob/main/LICENSE).

0 commit comments

Comments
 (0)