PayPal - 通过立即付款表单(不是帐户)发送辅助电子邮件确认

时间:2017-01-08 00:20:54

标签: paypal

我一直在寻找这个问题的解决方案,但找不到正确的问题,这就是问题所在:

我正在开发一个简单的PayPal集成工具,它所做的只是显示为我们每个客户的payPayl账户定制的现在付费表单,当最终用户支付我们的客户获得付款时(到目前为止这是有效的)。

问题是我还需要它也将确认的副本发送到我们的电子邮件地址,但仅限于通过此表单的交易,因为客户将有来自其他地方的其他交易我们不应该得到确认(所以不能选择将公司电子邮件添加到每个客户的paypal帐户)。

有没有人知道如何实现这一目标?是否有一个我可以添加的隐藏字段可以解决这个问题?这是一个示例表单:

Amount: {{this.amount}}
Paypal Email: {{this.paypalEmail}}
<br><br>
{{#if this.paypalEmail}}
    {{#if this.amount}}
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="border: 1px solid #ccc; padding: 30px; width: 200px;">
            <input type="hidden" name="cmd" value="_xclick">
            <input type="hidden" name="business" value="{{this.paypalEmail}}">
            <input type="hidden" name="lc" value="CA">
            <input type="hidden" name="item_name" value="Service Charge">
            <input type="hidden" name="button_subtype" value="services">
            <input type="hidden" name="no_note" value="0">
            <input type="hidden" name="currency_code" value="CAD">
            <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_SM.gif:NonHostedGuest">
            <table>
                <input type="hidden" name="item_name" value="Service Charge">
                <strong>Invoice Amount: </strong><br>
                <h3>{{this.amount}}</h3>
                <input type="hidden" name="amount" value="{{this.amount}}">
                <button style="padding: 5px 10px; background-color:mediumaquamarine; color: white; border-radius: 3px; border: 0px;" border="0" name="submit" alt="Pay Now">Pay Now</button>
                <!--<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.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">-->
            </table>
        </form>
    {{/if}}
{{/if}}

我们非常感谢任何帮助,因为我们现在处于困境!

1 个答案:

答案 0 :(得分:1)

我仍然没有找到答案,但我确实找到了另一种选择,您可以通过向表单添加隐藏的输入字段来将答复的副本发布到API,这是我猜的下一个最好的事情,从那里您可以通过电子邮件发送副本或只处理结果,以下是代码:

<input type="hidden" name="notify_url" value="<API URL>">

我希望这可以帮助任何有这个问题的人,这非常令人沮丧。