Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I Integrate Knet on Android and iOS ? #4

Open
msliman opened this issue Jun 4, 2017 · 12 comments
Open

How can I Integrate Knet on Android and iOS ? #4

msliman opened this issue Jun 4, 2017 · 12 comments

Comments

@msliman
Copy link

msliman commented Jun 4, 2017

No description provided.

@Q8root
Copy link

Q8root commented Nov 8, 2017

You need to make your own restful API to receive a Http payment request and response with payment URL, hosted in your own or 3rd party platform , then after you received an knet payment URL from your API, you can view the payment page using a webview class :-
Android
https://developer.android.com/reference/android/webkit/WebView.html
IOS
https://developer.apple.com/documentation/uikit/uiwebview

Here is some about restful API. Programming in cloud or server side:
http://www.restapitutorial.com/lessons/whatisrest.html#
In mobile app you will use an Http networking library such as okHttp for Android :-
http://square.github.io/okhttp/

For IOS:
https://github.com/Alamofire/Alamofire

You can find more buy googling 'http networking library for Android .

@Darshzz
Copy link

Darshzz commented Feb 13, 2018

But where I can find Api's of KNET ?

@msliman
Copy link
Author

msliman commented Feb 13, 2018

I made it as web view, there are no APIs

@Darshzz
Copy link

Darshzz commented Feb 13, 2018

Did you opened this "https://www.kuwaitpay.com/" link in webview ??

@msliman
Copy link
Author

msliman commented Feb 13, 2018

Yes, but not this screen. I used the direct payment screen.

@Q8root
Copy link

Q8root commented Feb 13, 2018

@Darshzz
Copy link

Darshzz commented Feb 13, 2018

Okay I will read this but can you share your logic/code so that it would help me a lot.

@Q8root
Copy link

Q8root commented Feb 13, 2018

You can check the logic code for GDGKuwait / knet-php-demo it's the same of what we are using.
The main core for integrating and calling knet api request is by using e24PaymentPipe plugin :
https://github.com/GDGKuwait/knet-php-demo/blob/master/com/aciworldwide/commerce/gateway/plugins/e24PaymentPipe.inc.php

@Darshzz
Copy link

Darshzz commented Feb 13, 2018

Okay will try this, Thanks a lot

@Q8root
Copy link

Q8root commented Feb 13, 2018

You're Welcome

@Darshzz
Copy link

Darshzz commented Feb 19, 2018

I want one information I am still not able to achieve this first of all and I just want to ask that is their any changes/coding required from server side or we can manage it at our end.

@mrazaimtiaz
Copy link

using MyFatoorah Apis, which is the easiest way to accept Knet, credit cards, and many other MyFatoorah payment methods.
this is the sample sdk code for both kotlin and java
https://dev.azure.com/myfatoorahsc/_git/MF-SDK-Android-Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants