Skip to content

Commit

Permalink
Merge pull request #2 from adlanrashdan/main
Browse files Browse the repository at this point in the history
Wrapper version update and Alipay Error Fix
  • Loading branch information
apis17 authored Feb 1, 2023
2 parents 8cfcbba + ab9ef29 commit 4e86876
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion molpayxdk/src/main/java/com/molpay/molpayxdk/MOLPayActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class MOLPayActivity extends AppCompatActivity {
private final static String mppinstructioncapture = "mppinstructioncapture://";
private final static String module_id = "module_id";
private final static String wrapper_version = "wrapper_version";
private final static String wrapperVersion = "4";
private final static String wrapperVersion = "5";

private String base64Img;
private String filename;
Expand Down Expand Up @@ -308,7 +308,16 @@ public void onReceiveValue(String ref_no) {
e.printStackTrace();
}
return true;
}else if (url.contains("alipays://")) {
try {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} catch (ActivityNotFoundException e) {
// Define what your app should do if no activity can handle the intent.
e.printStackTrace();
}
return true;
}
}
return false;
}
Expand Down

0 comments on commit 4e86876

Please sign in to comment.