Skip to content

Commit

Permalink
added shopee channel
Browse files Browse the repository at this point in the history
  • Loading branch information
hisyam committed Dec 10, 2020
1 parent 4476e02 commit f70efa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MOLPayXDKExample/MOLPayXDKExample/MOLPay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class MOLPay : UIViewController
public MOLPay(Dictionary<string, object> paymentDetails, Action<string> callback)
{
paymentDetails.Add(module_id, "molpay-mobile-xdk-xamarin-ios");
paymentDetails.Add(wrapper_version, "0");
paymentDetails.Add(wrapper_version, "1");
this.callback = callback;
json = JsonConvert.SerializeObject(paymentDetails);
}
Expand Down Expand Up @@ -283,7 +283,7 @@ private void MPMOLPayUILoadFinished(object sender, EventArgs e)

Console.WriteLine("MPMOLPayUILoadFinished url = " + finishLoadUrl);

if (finishLoadUrl != null && finishLoadUrl.Contains("intermediate_appTNG-EWALLET.php"))
if (finishLoadUrl != null && (finishLoadUrl.Contains("intermediate_appTNG-EWALLET.php") || finishLoadUrl.Contains("intermediate_app/processing.php")))
{
string returnResult = mpMOLPayUI.EvaluateJavascript($"document.getElementById('systembrowserurl').innerHTML");
string url = Base64Decode(returnResult);
Expand Down

0 comments on commit f70efa4

Please sign in to comment.