简体   繁体   English

PayPal Web Payments Pro托管-信用卡付款确认页面

[英]PayPal Web Payments Pro Hosted - Credit Card payment confirmation page

I've implemented Website Payments Pro Hosted on my website. 我已经在自己的网站上实施了托管网站付款专业版 I can pay using the PayPal log in and it gives me the link to return to my store which is fine as I then display my order confirmation page to the user. 我可以使用贝宝(PayPal)登录进行付款,它为我提供了返回到我的商店的链接,这很好,然后我向用户显示我的订单确认页面。

When the user decides to pay via credit card: 当用户决定通过信用卡付款时:

在此处输入图片说明

They are then redirected to a confirmation page I don't seem to have any control over: 然后将它们重定向到确认页面,我似乎对此没有任何控制权:

在此处输入图片说明

What I've tried: 我试过的

  1. Setting auto return on in my preferences and setting a return url (both via the Profile and in my initial API call when generating the button. 根据我的喜好设置自动返回,并设置返回网址(通过Profile和生成按钮时在我的初始API调用中)。
  2. Changing the Web Payments Pro confirmation page setting to On my sites confirmation page . 将“ Web Payments Pro确认页面”设置更改为“ On my sites confirmation page

When the payment is taken via credit card, I'd like to redirect the user to my actual payment confirmation page. 通过信用卡付款时,我想将用户重定向到我的实际付款确认页面。 Is this possible? 这可能吗?

It turns out that showHostedThankyouPage=true was causing this issue. 事实证明, showHostedThankyouPage=true导致了此问题。

I am using the .NET button API to generate the request for the iFrame like so: 我正在使用.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"
                }
            }
        });

I had showHostedThankyouPage=true included in the name value pairs which was causing the issue. 我将showHostedThankyouPage=true包含在导致问题的名称值对中。 Removing it sorted it out. 删除它整理出来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM