我正在尝试使用以下代码设置基于订阅的付款
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="notify_url" value="https://example.com/subscribe/ipn">
<input type="hidden" name="custom" value="">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="TY3URFFH8DYDN">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
确保接收帐户在沙箱环境中具有已确认的电子邮件:https://www.sandbox.paypal.com/businessmanage/account/accountOwner
沙盒环境从不发送“真实”电子邮件,因此您无需检查真实电子邮件收件箱即可获得确认消息。而是转到开发人员的“ Notifications”选项卡。 (如果尚未登录,请点击右上角的“登录到信息中心”)
((如果您尚未将特定的www.sandbox.paypal.com帐户导入您的实时developer.paypal.com登录名,请先通过https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Faccounts%2F->登录门户->使用第一个链接页面以使用沙箱帐户的凭据进行身份验证以进行链接。)