Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## Installation
<br/>

The Rave Ionic 3 Module adds support for spinning up the Rave modal on IOS and Android. It uses the Rave Standard endpoint and has done all the hard work for you. All you need to is add the necessary file and call the appropriate functions.
The Rave Ionic 3 Module adds support for spinning up the Rave modal on IOS and Android. It uses the Rave Standard endpoint and has done all the hard work for you. All you need is to add the necessary file and call the appropriate functions.

1. Follow the official [Rave](https://www.flutterwave.com) documentation on how to create an account if you don't have one yet.
2. Create a dummy project. For example ```ionic start myapp blank```
Expand All @@ -18,7 +18,7 @@ $ ionic cordova plugin add cordova-plugin-inappbrowser
$ npm install --save @ionic-native/in-app-browser
```
4. [Add the module to your AppModule](https://ionicframework.com/docs/native/#Add_Plugins_to_Your_App_Module)
5. **Ensure** that you have set up a redirect url to handle the response sent from rave. See [here](https://medium.com/@jake_parkers/3d-secure-guidelines-9e17f9a6cf32) for guide lines on how to set up your redirect url
5. **Ensure** that you have set up a redirect url to handle the response sent from rave. See [here](https://medium.com/@jake_parkers/3d-secure-guidelines-9e17f9a6cf32) for guidelines on how to set up your redirect url
5. See Usage


Expand Down Expand Up @@ -100,7 +100,7 @@ Start the Rave UI to collect payment from user.

- Returns: ```InAppBrowserObject```

Use the ```InAppBrowserObject``` returned to close the modal once the transaction completes by binding to the ```loadend``` event and checking for your redirect url as was shown above.
Use the ```InAppBrowserObject``` returned to close the modal once the transaction completes by binding to the ```loaded``` event and checking for your redirect url as was shown above.

**```paymentStatus(url)```**
Get's the status of the transaction and returns it as a string. The status could either be ```success``` or ````failed```.
Expand All @@ -111,7 +111,7 @@ Parameter(s)

- Returns: ```String```

You should use the returned status to determine whether or not you shoud show a success or error message to your users.
You should use the returned status to determine whether or not you should show a success or error message to your users.

**NOTE: IOS users ```may``` still need to rely on the ```Done``` button at the bottom left of the opened.**

Expand Down