Paypal'ı entegre etmeye çalışıyorum ve bu işlemde sanal alanı kullanıyorum. Aşağıdaki cevapta kabul edilen cevabın adımını takip ediyorum. URL'yi girmeyi denediğimde, Paypal aşağıdaki hatayı döndürür.PayPal geri dönüş URL'sini localhost'a ayarlama
We were unable to validate the URL you have entered. Please check your entry and try again.
URL Ayarlamaya çalıştığım http://localhost:8888/paypal/success.php
.
Ayrıca Ben aşağıda formu ile iade url gönderme çalıştı.
<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">
Her iki yöntem de benim için çalışmaz.
Tam Formu
<form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" value="[email protected]" name="business">
<!-- Specify a Buy Now button. -->
<input type="hidden" value="_xclick" name="cmd">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" value="AM Test Item" name="item_name">
<input type="hidden" value="22.16" name="amount">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" value="item_number" name="item_number">
<input type="hidden" name="return" value="http://localhost:8888/paypal/success.php">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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>
nasıl geliştirme pc bu test edebilirsiniz?
aynı URL'yi geçmesi Ben de aynı şeyi düşünmüş İlk önce ama yukarıdaki cevap bana yardımcı oldu. Yine de teşekkürler – Techie
Ayrıca, bu yanlış. Tüm testlerimi yerel olarak yapıyorum ve PayPal'ın dönüş URL'si için localhost adresi kullanmasıyla ilgili bir sorunu yok. Sadece halka açık bir web sunucusunda olmanız gereken IPN'leri test ederken. –
Soru 'Otomatik İade' ve bu, localhost kullanırken çalışmaz. Bununla birlikte, dönüş URL'sini localhost olarak ayarlayabilir ve paypal adımları sırasında (Hangi adı) döndürdüğünüzü tıklayabilirsiniz. Bu, localhost url'ye dönecektir, ancak aslında hata ayıklamaya ve otomatik dönüşü test etmeye çalışırken bir problemdir! – leen3o