PayPal Web Payments Pro Hosted - 信用卡付款确认页面
PayPal Web Payments Pro Hosted - Credit Card payment confirmation page
我已经在我的网站上实现了 Website Payments Pro Hosted。我可以使用 PayPal 登录付款,它会向我的商店提供 link 到 return,这很好,因为我会向用户显示我的订单确认页面。
当用户决定通过信用卡支付时:
然后他们被重定向到一个我似乎无法控制的确认页面:
我试过的:
- 在我的首选项中设置自动 return 并设置 return url(通过个人资料和在生成按钮时我最初的 API 调用。
- 将 Web Payments Pro 确认页面设置更改为
On my sites confirmation page
。
当通过信用卡付款时,我想将用户重定向到我的实际付款确认页面。这可能吗?
原来是 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
。删除它整理出来。
我已经在我的网站上实现了 Website Payments Pro Hosted。我可以使用 PayPal 登录付款,它会向我的商店提供 link 到 return,这很好,因为我会向用户显示我的订单确认页面。
当用户决定通过信用卡支付时:
然后他们被重定向到一个我似乎无法控制的确认页面:
我试过的:
- 在我的首选项中设置自动 return 并设置 return url(通过个人资料和在生成按钮时我最初的 API 调用。
- 将 Web Payments Pro 确认页面设置更改为
On my sites confirmation page
。
当通过信用卡付款时,我想将用户重定向到我的实际付款确认页面。这可能吗?
原来是 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
。删除它整理出来。