0

所以我从我们的 Android 应用程序 ( https://github.com/venmo/app-switch-android )中复制了 Venmo API 中的这段代码。

 try {
    Intent venmoIntent = VenmoLibrary.openVenmoPayment("2019", "EasySplit","xxxx(some valid user name)", "0.1", "Testing", "pay");
    startActivityForResult(venmoIntent, 1); //1 is the requestCode we are using for Venmo. Feel free to change this to another number. 
}
catch (android.content.ActivityNotFoundException e) //Venmo native app not install on device, so let's instead open a mobile web version of Venmo in a WebView
{
    Intent venmoIntent = new Intent(MainActivity.this, VenmoWebViewActivity.class);
    String venmo_uri = VenmoLibrary.openVenmoPaymentInWebView("2019", "EasySplit","xxx(some valid user name)", "0.1", "Testing", "pay");
    venmoIntent.putExtra("url", venmo_uri);
    startActivityForResult(venmoIntent, 1);
}

但是,问题是我去webview并登录后,我根本无法付款。我希望我可以点击一个按钮来支付,但那里没有这样的按钮。我可以看到文字“付款(收件人姓名)(一些金额)”,但我似乎无法购买。知道问题是什么以及如何解决吗?非常感谢任何帮助!!!!

4

0 回答 0