我已经使用PayPal按钮代码生成器创建了2个按钮。
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="TestName">
<input type="hidden" name="item_number" value="TestID">
<input type="hidden" name="amount" value="50.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="tax_rate" value="0.000">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit"
alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="ZAH44BSSBQT6G">
<input type="hidden" name="display" value="1">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_viewcart_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>
我需要知道是否可以通过应用程序的client_id而不是(我的公司电子邮件或商人ID),以便我可以通过这些按钮触发服务器上的Webhooks?如果不可能,是否有任何方法可以将Paypal购物车与REST API Webhooks一起使用?
无论如何,如果您确实坚持使用旧的Web 1.0集成,并希望将其与webhooks结合使用,请尝试订阅所有可能的付款捕获/完成webhook事件(v1和v2),然后查看您收到了什么。如果您什么都没有收到,则需要使用旧的即时付款通知(IPN)服务而不是Webhooks。