【问题标题】:PayPal Web Payments Pro Hosted - Credit Card payment confirmation pagePayPal Web Payments Pro Hosted - 信用卡付款确认页面
【发布时间】:2015-07-19 00:27:42
【问题描述】:

我已经在我的网站上实现了Website Payments Pro Hosted。我可以使用 PayPal 登录付款,它会为我提供返回商店的链接,这很好,因为我随后会向用户显示我的订单确认页面。

当用户决定使用信用卡付款时:

然后他们被重定向到我似乎无法控制的确认页面:

我的尝试:

  1. 在我的首选项中设置自动返回并设置返回 URL(通过配置文件和生成按钮时的初始 API 调用。
  2. 将 Web Payments Pro 确认页面设置更改为 On my sites confirmation page

当通过信用卡付款时,我想将用户重定向到我的实际付款确认页面。这可能吗?

【问题讨论】:

    标签: paypal paypal-sandbox


    【解决方案1】:

    原来是showHostedThankyouPage=true 导致了这个问题。

    我正在使用 .NET 按钮 API 生成对 iFrame 的请求,如下所示:

    var service = new PayPalAPIInterfaceServiceService(GetConfig(request));
            var createButtonResponse = service.BMCreateButton(new BMCreateButtonReq
            {
                BMCreateButtonRequest = new BMCreateButtonRequestType
                {
                    ButtonType = ButtonTypeType.PAYMENT,
                    ButtonCode = ButtonCodeType.TOKEN,
                    ButtonCountry = countryCodeType,
                    ButtonVar = new List<string>
                    {
                        String.Format("subtotal={0}", _salesOrderPriceService.GetGrossTotal(request.Order)),
                        String.Format("notify_url={0}", request.NotifyUrl),
                        String.Format("return={0}", request.ReturnUrl),
                        String.Format("invoice={0}", request.Order.Id),
                        String.Format("currency_code={0}", request.Order.Currency.Code),
                        String.Format("cancel_return={0}", request.CancelReturnUrl),
                        "billing_first_name=test",
                        "billing_last_name=tset",
                        "billing_address1=test",
                        "billing_city=test",
                        "billing_state=tes",
                        "billing_zip=test",
                        "billing_country=GB",
                        "template=templateD",
                        "paymentaction=sale",
                        "business=tset"
                    }
                }
            });
    

    我将showHostedThankyouPage=true 包含在导致问题的名称值对中。删除它就解决了。

    【讨论】:

    • 我建议对此进行详细说明或改写,以更好地帮助将来遇到同样问题的其他人。
    猜你喜欢
    • 1970-01-01
    • 2014-08-09
    • 1970-01-01
    • 2014-04-11
    • 1970-01-01
    • 1970-01-01
    • 2013-06-02
    • 2011-06-09
    • 2015-06-13
    相关资源
    最近更新 更多