我爲我的網站的管理員創建了一個函數,使用PayPal將錢返還給用戶。我用Paypal創建了一個按鈕。我的問題是:當管理員登錄貝寶與商業帳戶,然後他將錢發送到個人帳戶,貝寶不會重定向到我的網站。Paypal如何重定向到我的網站?
這裏是我的代碼
<form target="myWindowPayment" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" id="payPalForm">
<input type="hidden" name="item_number" value="<?php echo $idProject ?>">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="<?php echo base_url() ?>crowdpp/backingProject/3">
<input type="hidden" name="cancel" value="<?php echo base_url() ?>crowdpp/backingProject/3">
<input name="item_name" type="hidden" id="item_name" value="Pledging for <?php echo $result->title ?> project" size="45">
<input name="amount" type="hidden" id="amount" value="<?php echo $pledgeAmount ?>" size="45">
</form>
嘗試登錄到您的沙盒帳戶並轉到個人資料 - >我的銷售工具 - >網站付款習慣設定。應該有一個選項「自動返回」,打開它並在那裏提供返回網址。保存設置並嘗試再次處理付款。 – Eshan 2014-09-06 20:39:51