我正在使用這種貝寶形式(付款是好的)的訂閱計劃,並沒有得到任何IPN通知,但是當我使用paypal生成的標準貝寶形式一切都與IPN通知是好的。有沒有辦法用這種形式獲得IPN?謝謝如何在同一表單中使用Paypal IPN通知和notify_url?
這是我的表格。如果我從這個表單中刪除notify_url,我只能獲取notify_url或IPM上的數據。
PS>主要問題!有沒有辦法使用ipn + notify_url?例?
<form action="https://www.paypal.com/a-bin/webscr" method="post" target="_top">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="[email protected]****.***">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- Specify details about the item that buyers will purchase. -->
<table>
<tbody><tr>
<td>
<input type="hidden" name="on1" value="Mobile/Cell Phone number:"><strong>Mobile/Cell Phone number:</strong>
</td>
<td>
<input type="text" maxlength="200" name="os1" required="">
</td>
</tr>
<tr>
<td>
<input id="item_name" type="hidden" name="item_name" value="kp4">
<input id="item_number" type="hidden" name="item_number" value="1">
<label>Subscription Plans</label>
</td>
<td>
<!-- <input type="hidden" name="a3" value="5.00"> -->
<input data-name="kp4" data-id="1" type="radio" name="a3" value="0.01" checked=""> 0,01 /month <br>
<input data-name="kp5" data-id="2" type="radio" name="a3" value="0.02"> 0,01 /month <br>
<input data-name="kp6" data-id="3" type="radio" name="a3" value="0.03">0,01 /month <br>
<input data-name="kp7" data-id="4" type="radio" name="a3" value="0.04> 0,01 /month <br>
<input data-name="kp8+" data-id="5" type="radio" name="a3" value="0.05"> 0,05 /month <br>
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
<input type="hidden" name="custom" value="ORG">
</td>
</tr>
</tbody></table>
<!-- Specify Currency Code -->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="2">
<!-- Specify URLs -->
<input type="hidden" name="notify_url" value="***payment-success.php?site_name=ORG">
<input type="hidden" name="cancel_return" value="****payment-cancel.php">
<input type="hidden" name="return" value="***payment-success.php">
<input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
你有沒有檢查你的IPN歷史?我擔心你有一個自定義的通知URL,但只有一個監聽器。 –
@AnaheimElectronics感謝您的回答。但是,「只有一個聽衆」是什麼意思?據我所知我的通知IPN網址用於貝寶帳戶中的每個通知。我在哪裏可以閱讀有關聽衆的內容?我可以在歷史中看到,我錯過的通知是通過PayPal發送的,但我沒有在我的轉儲中看到它們,但其他人在那裏。我正在使用3個網站,其中一個PayPal帳戶和一個IPN通知網址。但是沒有看到我的測試IPN支付爲0.01 $ – SERG
您的'notify_url'需要接受一個POST列表,並且不會失敗處理它們。對於'return'和'notify_url'使用相同的頁面沒有太大意義。但是你當然可以使用動態'notify_url':我已經做了好幾年了。 – EJP