【发布时间】:2019-08-24 10:22:36
【问题描述】:
我正在尝试使用 PayPal 为我的应用程序接受付款。我已经设置了可以支付快速结帐的地方;但是,一旦我支付了金额,我就会被重定向,以便我可以授权付款,但我没有使用网络服务器,我如何才能禁用 url 重定向并在他们付款后立即捕获付款?
RedirectUrls redirectUrls = new RedirectUrls();
redirectUrls.setCancelUrl("example.com/");
redirectUrls.setReturnUrl("example.com/");
payment.setRedirectUrls(redirectUrls);
我需要禁用这些,所以不要在贝宝页面上重定向它
实际结果为example.com/paymentId=PAY-SIMP&token=EC-SIMP&PayerID=SIMP
当我的预期结果不应该重定向到 example.com,而是留在 paypals 网站上时。
【问题讨论】: