Skip to content

Commit

Permalink
Merge pull request #39 from AmatulMusawar/master
Browse files Browse the repository at this point in the history
update readme , for flutte-web integration
  • Loading branch information
Shek863 authored May 22, 2024
2 parents df9633a + 12dd559 commit e91aa4d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ final kkiapay = KKiaPay(
##### Create payment webview instance

```dart
Mobile:
Navigator.push(context, MaterialPageRoute(builder: (context) => kkiapay),
Web:
kkiapayWeb.pay(kkiapay, (response){}),
```

## Example
Expand Down Expand Up @@ -165,6 +170,25 @@ class KkiapaySample extends StatelessWidget {
);
},
),
),
const SizedBox(height: 50,),
ButtonTheme(
minWidth: 500.0,
height: 100.0,
child: TextButton(
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(const Color(0xff222F5A)),
foregroundColor: MaterialStateProperty.all(Colors.white),
),
child: const Text(
'Pay Now ( WEB )',
style: TextStyle(color: Colors.white),
),
onPressed: () {
kkiapayWeb.pay(kkiapay, (response){});
},
),
)
],
)
Expand Down Expand Up @@ -213,9 +237,17 @@ the successCallback function takes two parameters in the following order
- the context of type BuildContext
```
### Web Integration

```html
add to your index.html
<script src="https://cdn.kkiapay.me/k.js"></script>

```

### 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

0 comments on commit e91aa4d

Please sign in to comment.