PayUMoney- Android 删除 postCheckout 页面
PayUMoney- Android Remove postCheckout pages
我已成功将 PayUMoney 集成到我的 Android 项目中,但在 Success/Failure 任何付款后,我们收到了来自 PayUMoney 的 post 结帐页面,如下所示
现在单击提供的按钮后,我收到了 onActivityResult
方法中的付款信息。
有什么办法可以跳过这些页面,直接在onActivityResult中获取结果吗?
代码实现(PayUMoney 配置对象):
PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();
payUmoneyConfig.setPayUmoneyActivityTitle("Payments");
payUmoneyConfig.disableExitConfirmation(true);
payUmoneyConfig.setDoneButtonText("Continue");
txnId = "txn_"+System.currentTimeMillis();
PayUmoneySdkInitializer.PaymentParam.Builder builder = new
PayUmoneySdkInitializer.PaymentParam.Builder();
builder.setAmount(balance)
.setTxnId(txnId)
.setPhone(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserPhone())
.setProductName("Product Name")
.setFirstName(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserName())
.setEmail(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserEmail())
.setsUrl("https://www.payumoney.com/mobileapp/payumoney/success.php")
.setfUrl("https://www.payumoney.com/mobileapp/payumoney/failure.php")
.setUdf1("")
.setUdf2("")
.setUdf3("")
.setUdf4("")
.setUdf5("")
.setUdf6("")
.setUdf7("")
.setUdf8("")
.setUdf9("")
.setUdf10("")
.setIsDebug(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayUMoneyDebug())
.setKey(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayMerchantKey())
.setMerchantId(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayMerchantSalt());
Gradle 实施
implementation 'com.payumoney.sdkui:plug-n-play:1.6.0'
终于解决了
我只是犯了一个小错误
只是替换
PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,
ActivityPayUMoney.this, R.style.PayUMoney, false);
和
PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,
ActivityPayUMoney.this, R.style.PayUMoney, true);
我已成功将 PayUMoney 集成到我的 Android 项目中,但在 Success/Failure 任何付款后,我们收到了来自 PayUMoney 的 post 结帐页面,如下所示
现在单击提供的按钮后,我收到了 onActivityResult
方法中的付款信息。
有什么办法可以跳过这些页面,直接在onActivityResult中获取结果吗?
代码实现(PayUMoney 配置对象):
PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();
payUmoneyConfig.setPayUmoneyActivityTitle("Payments");
payUmoneyConfig.disableExitConfirmation(true);
payUmoneyConfig.setDoneButtonText("Continue");
txnId = "txn_"+System.currentTimeMillis();
PayUmoneySdkInitializer.PaymentParam.Builder builder = new
PayUmoneySdkInitializer.PaymentParam.Builder();
builder.setAmount(balance)
.setTxnId(txnId)
.setPhone(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserPhone())
.setProductName("Product Name")
.setFirstName(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserName())
.setEmail(new SharedPreferencesUtils(ActivityPayUMoney.this).getUserEmail())
.setsUrl("https://www.payumoney.com/mobileapp/payumoney/success.php")
.setfUrl("https://www.payumoney.com/mobileapp/payumoney/failure.php")
.setUdf1("")
.setUdf2("")
.setUdf3("")
.setUdf4("")
.setUdf5("")
.setUdf6("")
.setUdf7("")
.setUdf8("")
.setUdf9("")
.setUdf10("")
.setIsDebug(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayUMoneyDebug())
.setKey(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayMerchantKey())
.setMerchantId(new SharedPreferencesUtils(ActivityPayUMoney.this).getPayMerchantSalt());
Gradle 实施
implementation 'com.payumoney.sdkui:plug-n-play:1.6.0'
终于解决了 我只是犯了一个小错误
只是替换
PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,
ActivityPayUMoney.this, R.style.PayUMoney, false);
和
PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,
ActivityPayUMoney.this, R.style.PayUMoney, true);