I'm developing one app for malaysia and I want to implement IPay88 sdk in my code so please provide me a guideline for this, it will be save my days, i have MERCHANT CODE and MERCHANT KEY and i download jar file from this link
How to implement IPay88 payment gateway SDK?
Asked Answered
why i have down vote please give me reason. –
Baking
if you satisfied my ans please right click my ans –
Electrothermal
lets start with step by step solution or guideline
import jar to your code follow this link
then after need to implement
IpayResultDelegate
, its for get result of payment like payment success, or fail.public class ResultDelegatePaymentMethod implements IpayResultDelegate, Serializable { @Override public void onPaymentSucceeded(String transId, String refNo, String amount, String remarks, String auth) { Log.e("tag", "onPaymentSucceeded"); } @Override public void onPaymentFailed(String transId, String refNo, String amount, String remarks, String err) { Log.e("tag", "onPaymentFailed"); } @Override public void onPaymentCanceled(String transId, String refNo, String amount, String remarks, String err) { Log.e("tag", "onPaymentCanceled"); } @Override public void onRequeryResult(String MerchantCode, String RefNo, String Amount, String Result) { Log.e("tag", "onRequeryResult"); }}
Now Call Intent of ipay88 and pass payments detail
IpayPayment payment = new IpayPayment(); payment.setMerchantKey(CommonKeyword.MERCHANT_KEY); payment.setMerchantCode(CommonKeyword.MERCHANT_CODE); payment.setPaymentId("16");//there are many payment id i attach image for it payment.setCurrency("MYR"); payment.setRefNo("refno010"); //pass string value as a reference payment.setAmount("1.00"); //amount in MYR payment.setProdDesc("product desc");//product description payment.setUserName("username"); payment.setUserEmail("[email protected]"); payment.setUserContact("06010101011"); payment.setRemark("test"); payment.setCountry("MY"); payment.setBackendPostURL("payment url of backend ex. http://xyz.payment.php"); Intent checkoutIntent = Ipay.getInstance().checkout(payment, MyActivity.this, new ResultDelegatePaymentMethod()); startActivityForResult(checkoutIntent, 1); finish();
4.parameters confusion? - need to refer doc of Ipay88 payment gateway.
hope you are satisfy with answers.
Are you guys calling this from a webview or something? I am getting "Permission not allow" from mobile device. –
Alleenallegation
Yes from mobile device you need to import ipay88 sdk –
Electrothermal
Thanks for the info! @Electrothermal –
Alleenallegation
I am getting this issue after trying the above: The webpage at uat-mobile-payment.ipay88.com:8243/PaymentGateway/… could not be loaded because : net:: ERR_CACHE_MISS –
Cristalcristate
you implement for web or mobile? –
Electrothermal
I am using Visual Studio 2019. I created the Android binding library from iPay88 SDK .jar file and its dll is referenced in android project. Now it loads the payment selection page in my app. But the callback didn't work. –
Erleena
According to this, it throws error when the callback in Android binding trying to execute my callback as System.NotSupportedException Message=Unable to activate instance of type myapppackage.Droid.MyCallback from native handle 0xAxyz (key_handle 0xyue736) –
Erleena
@nr5, I too facing the same issue in android mobile application. Any fix for this? –
Erleena
© 2022 - 2024 — McMap. All rights reserved.