Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PayPal发票API发票看起来不像预览版_Api_Paypal_Preview_Invoice - Fatal编程技术网

PayPal发票API发票看起来不像预览版

PayPal发票API发票看起来不像预览版,api,paypal,preview,invoice,Api,Paypal,Preview,Invoice,我一直在测试Paypal发票API,并通过CreateAndSendInvoice成功地将沙箱中的发票从沙箱业务帐户发送到沙箱客户帐户。然而,邮寄的发票总是显示在文本中,没有任何按钮通过贝宝处理付款。因此,我再次进入沙盒业务,创建了一个发票并发送到沙盒客户帐户。邮寄的发票也是纯文本,与预览版完全不同。如何在沙箱中发送看起来像发票预览的PayPAl发票?如何通过看起来像预览版的PayPal发票API发送发票?目前,我得到的示例文本发票如下所示 ---------------------------

我一直在测试Paypal发票API,并通过CreateAndSendInvoice成功地将沙箱中的发票从沙箱业务帐户发送到沙箱客户帐户。然而,邮寄的发票总是显示在文本中,没有任何按钮通过贝宝处理付款。因此,我再次进入沙盒业务,创建了一个发票并发送到沙盒客户帐户。邮寄的发票也是纯文本,与预览版完全不同。如何在沙箱中发送看起来像发票预览的PayPAl发票?如何通过看起来像预览版的PayPal发票API发送发票?目前,我得到的示例文本发票如下所示

---------------------------------------------------------------------- You've received an invoice ---------------------------------------------------------------------- Hello Client User Test Store sent you an invoice for $1.10 USD. View and Pay Invoice https://www.sandbox.paypal.com/us/cgi_bin/webscr?cmd=_pay-inv&id=INV2-A5ZC-BGK5-JRR5-E58V ---------------------------------------------------------------------- Summary of this invoice ---------------------------------------------------------------------- Sent to: Client USer client.user@gmail.com Sent from: Test Store teststore-facilitator@gmail.com Invoice number: 0003 Date payment is due: Mar 7, 2014 Amount: $1.10 USD ---------------------------------------------------------------------- Help Center: https://www.sandbox.paypal.com/us/cgi-bin/helpweb?cmd=_help Security Center: https://www.sandbox.paypal.com/us/security Please don't reply to this email. It'll just confuse the computer that sent it and you won't get a response. Copyright © 2014 PayPal, Inc. All rights reserved. PayPal is located at 2211 N. First St., San Jose, CA 95131. PayPal Email ID PP1557 ---------------------------------------------------------------------- 你收到了一张发票 ---------------------------------------------------------------------- 你好客户端用户 测试商店向您发送了1.10美元的发票。 查看并支付发票 https://www.sandbox.paypal.com/us/cgi_bin/webscr?cmd=_pay-inv&id=INV2-A5ZC-BGK5-JRR5-E58V ---------------------------------------------------------------------- 本发票摘要 ---------------------------------------------------------------------- 发送至:客户端用户 客户user@gmail.com 发送自:测试存储 测试库-facilitator@gmail.com 发票号码:0003 付款到期日:2014年3月7日 金额:1.10美元 ---------------------------------------------------------------------- 帮助中心: https://www.sandbox.paypal.com/us/cgi-bin/helpweb?cmd=_help 安全中心: https://www.sandbox.paypal.com/us/security 请不要回复此电子邮件。它只会混淆发送它的计算机,而您将无法得到响应。 版权所有©2014贝宝公司。保留所有权利。贝宝位于加利福尼亚州圣何塞北第一街2211号,邮编95131。 PayPal电子邮件ID PP1557
由于您使用的是沙盒帐户,因此听起来您一定是在通知选项卡中看到这些电子邮件,在该选项卡中,电子邮件被发送到沙盒帐户

我很确定你遇到的是,在那里使用的电子邮件客户端是有限的,实际上除了收到的发票的文本版本外,什么也看不到。如果你能在一个更好的电子邮件客户端上看到同样的发票,它可能看起来很好

我建议登录到发票接收者的沙箱帐户,并确保它在历史记录中按预期显示。如果是这样的话,那么听起来一切都正常了,当你上线并开始将这些电子邮件发送给真正的电子邮件客户时,一切都会正常工作

您可以在live server上运行最终测试,并向您拥有的电子邮件帐户(未附加到您的PayPal帐户)发送1.00或类似费用的发票。然后你可以看到它在你真正的客户身上是什么样子的