GDGKuwait / knet-php-demo

This is the demo integration kit provided by KNET for PHP
18 stars 12 forks source link

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

Open msliman opened 7 years ago

Q8root commented 7 years ago

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 commented 6 years ago

But where I can find Api's of KNET ?

msliman commented 6 years ago

I made it as web view, there are no APIs

Darshzz commented 6 years ago

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

msliman commented 6 years ago

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

Q8root commented 6 years ago

Checkout this link https://issuu.com/syedde/docs/k-035_payment_gateway_merchant_inte

Darshzz commented 6 years ago

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

Q8root commented 6 years ago

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 commented 6 years ago

Okay will try this, Thanks a lot

Q8root commented 6 years ago

You're Welcome

Darshzz commented 6 years ago

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 commented 4 years ago

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