diff --git a/README.md b/README.md index b2f4a92..a5bbcfd 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,20 @@ dependencies: kkiapay_flutter_sdk: ``` +For web + +```html +add to your index.html + +``` + ## Usage ```dart import 'package:kkiapay_flutter_sdk/kkiapay_flutter_sdk.dart'; ``` -##### Initialise the Kkiapay Instance +#### Initialise the Kkiapay Instance ```dart final kkiapay = KKiaPay( @@ -48,18 +55,20 @@ final kkiapay = KKiaPay( partnerId: String, // Ex : 'AxXxXXxId' paymentMethods: List // Ex : ["momo","card"] ); - ``` -##### Create payment webview instance +#### Create payment webview instance -```dart Mobile: + +```dart Navigator.push(context, MaterialPageRoute(builder: (context) => kkiapay), +``` Web: -kkiapayWeb.pay(kkiapay, (response){}), +```dart +kkiapayWeb.pay(kkiapay, (response){}), ``` ## Example @@ -236,18 +245,8 @@ the successCallback function takes two parameters in the following order - the context of type BuildContext - -``` -### Web Integration - -```html -add to your index.html - - -``` - ### Issues and feedback Please file [issues](https://github.com/kkiapay/kkiapay-flutter-sdk/issues/new) to send feedback or report a bug. Thank you! -gir \ No newline at end of file +gir