【发布时间】:2013-12-22 20:23:20
【问题描述】:
所以我想知道如何创建 PayPal 捐赠 IPN/API。 我不确定这是否就是它们的名称,所以这里是我正在谈论的内容的屏幕截图。
http://s9.postimg.org/jxixshjan/paypal.jpg(更新)
这里只是裸输入和按钮。没有列表。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="example@example.com">
<input type="hidden" name="lc" value="CAD">
<input type="hidden" name="item_name" value="Example">
<div class="input-prepend" style="display:inline; padding-right:10px;">
<span class="add-on">$</span><input type="text" id="supportAmount" name="amount" value="5.00" style="width:50px;">
</div>
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Leave a message to the Developer:">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="https://www.example.com/index?supporter=true">
<input type="hidden" name="cancel_return" value="https://www.example.com/index">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="hidden" name="notify_url" value="#">
<input type="hidden" name="custom" value="example">
<input type="submit" id="supportbtn" value="Support Me" />
</form>
我想知道是否仅使用此 HTML 代码,我是否可以将其放在我的网站上,一旦人们点击“支持我”,捐款就会进入我的 PayPal 帐户(在捐赠者填写正确的信用卡之后当然是 PayPal 信息)
我也只有一个 PayPal 的高级帐户。并且 name="business" value="email@email.com" 需要是我与 PayPal 关联的电子邮件才能正确接收捐款?
如果此代码仅适用于此 HTML 代码,我可以放置...
<input type="submit" id="supportbtn" value="Support Me" />
代码中的任何地方? (寻找 *)
例如在
之间<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" >
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="example@example.com">
<input type="hidden" name="lc" value="CAD">
<input type="hidden" name="item_name" value="Example">
<div class="input-group input-group-sm" style="width:100%;">
<span class="input-group-addon">$</span>
<input type="text" class="form-control" name="amount" value="5.00" placeholder="5.00">
<span class="input-group-btn">
*******<input type="submit" class="btn btn-danger" value="Support Me">*******
</span>
</div>
<input type="hidden" name="currency_code" value="CAD">
<input type="hidden" name="button_subtype" value="services">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Leave a message to the Developer:">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="return" value="http://www.example.com">
<input type="hidden" name="cancel_return" value="http://www.example.com">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="hidden" name="notify_url" value="#">
<input type="hidden" name="custom" value="example">
</form>
【问题讨论】:
标签: html api paypal paypal-ipn