2015-04-16 40 views
1

我需要一個解決方案,以防止訪問者達到付費朋友返回網址(成功頁面),如果他們沒有支付或支付,但又想再次訪問。如何使PayPal返回的URL只能看到付款人?

我該如何讓訪問者通過pay-pal支付後才能看到這個返回鏈接?

謝謝您的幫助

回答

0

您必須啓用您的支付寶賬戶自動返回,否則將忽略返回現場。

從文檔(更新以反映新的佈局):

Auto Return is turned off by default. To turn on Auto Return: 

    1 - Log in to your PayPal account at https://www.paypal.com. The My Account Overview page appears. 
    2 - Click the Profile subtab. The Profile Summary page appears. 
    3 - Click the My Selling Tools link in the left column. 
    4 - Under the Selling Online section, click the Update link in the row for Website Preferences. The Website Payment Preferences page appears 
    5 - Under Auto Return for Website Payments, click the On radio button to enable Auto Return. 
    6 - In the Return URL field, enter the URL to which you want your payers redirected after they complete their payments. NOTE: PayPal checks the Return URL that you enter. If the URL is not properly formatted or cannot be validated, PayPal will not activate Auto Return. 
    7 - Scroll to the bottom of the page, and click the Save button. 

IPN是即時付款通知。它將爲您提供比自動退貨所獲得的更可靠/有用的信息。對於IPN

文檔是在這裏:https://www.x.com/sites/default/files/ipnguide.pdf

的IPN在線文檔:https://developer.paypal.com/docs/classic/ipn/gs_IPN/

的一般程序是,你傳遞一個notify_url參數與要求,建立了一套處理和驗證IPN通知的網頁,PayPal會向該頁面發送請求,以便在付款/退款/等時通知您。經過。那麼IPN處理程序頁面將成爲更新數據庫以將訂單標記爲已付款的正確位置。

+0

謝謝你的回答,我已經調整好PayPal IPN,貝寶自動返回PDT選項 我只需要遊客或現有成員不應該達到/知道successpage的真實地址(自動返回URL) 例如:WWW。 domain.com/payment-successful 我希望它會出現不同的每次有人支付,如:www.domain.com/asd7a8sd7a89sd7a9s87da9sd7a9(加密) 或 它是不加密的,但只有在支付寶付款可見的,如果新訪問者或舊的現有成員知道成功鏈接(自動返回url),這個人仍然不應該查看它(它給錯誤或重定向首頁頁面) – Bilal

+0

我正在使用PayPal,如果您需要,如果買方直接返回成功頁面,比方說,在幾個小時內,它會看到一個錯誤(令牌錯誤...)。而不是那個錯誤,您可以編碼成功頁面,以便在發生錯誤時將用戶重定向到產品頁面。 –

+0

我的成功頁面(購買完成後從paypal返回的網址)是一個wordpress頁面。是否有用戶登錄或不用,或者是否購買,目前每個人都可以看到。我需要它僅在PayPal付款後纔可訪問。你能爲此建議我嗎?感謝您的支持 – Bilal