【问题标题】:PayPal - Send secondary email confirmation though pay now form (not account)PayPal - 通过立即付款表单(不是帐户)发送辅助电子邮件确认
【发布时间】:2017-05-22 12:55:43
【问题描述】:

我一直在寻找解决此问题的方法,但找不到正确的解决方案,问题出在:

我正在开发一个简单的 paypal 集成工具,它所做的只是显示一个为我们每个客户的 payPayl 帐户定制的立即付款表单,当最终用户付款时,我们的客户收到付款(到目前为止,这是可行的)。

问题是我还需要将确认副本发送到我们的电子邮件地址,但仅限于通过此表单进行的交易,因为客户将在其他地方进行其他我们不应该进行的交易获得确认(因此无法将我们公司的电子邮件添加到每个客户的贝宝帐户)。

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

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}}

非常感谢任何帮助,因为我们现在被困住了!

【问题讨论】:

    标签: paypal


    【解决方案1】:

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

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

    我希望这对遇到此问题的人有所帮助,这非常令人沮丧。

    【讨论】:

      猜你喜欢
      • 2019-08-24
      • 2021-07-14
      • 2020-05-08
      • 2015-01-19
      • 1970-01-01
      • 2012-04-15
      • 2014-01-26
      • 1970-01-01
      • 2013-08-23
      相关资源
      最近更新 更多