[英]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: 我试过的
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.