2015-05-08 87 views
1

我在我的網站上實施了Website Payments Pro Hosted。我可以使用PayPal登錄進行支付,並且它給了我返回到我的商店的鏈接,因爲我向用戶顯示了訂單確認頁面。PayPal Web Payments Pro託管 - 信用卡付款確認頁面

當用戶決定通過信用卡支付:

enter image description here

然後,他們將被重定向到一個確認頁面,我似乎沒有有過任何控制:

enter image description here

我試過的東西:

  1. 在我的首選項中設置自動返回並設置返回URL(在生成按鈕時都通過配置文件和我的初始API調用)。
  2. 將Web Payments Pro確認頁面設置更改爲On my sites confirmation page

當通過信用卡付款時,我想將用戶重定向到我的實際付款確認頁面。這可能嗎?

回答

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。刪除它整理出來。

+1

我建議對此進行詳細說明或改寫,以便更好地幫助其他未來有同樣問題的人。 – Brian

+0

對不起,很急。我已經添加了更多信息。 – webnoob