客户端在使用 REST API 发送发票时不会收到电子邮件PayPal



我已经创建并发送了发票给客户端,然后我使用检索发票来检查。状态是SENT,但是客户端没有收到任何来自邮件的发票。下面是我的代码:

$send = "curl -v -X 'POST' 'https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-DZF4-Y9AU-4L7U-ZF7W/send' -H 'Content-Type: application/json' -H 'Authorization: Bearer " . $access_token . "'";
exec($send, $sendResult);
$receive = "curl -v -X 'GET' 'https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-DZF4-Y9AU-4L7U-ZF7W' -H 'Authorization: Bearer " . $access_token . "'";
exec($receive, $receiveResult);
$receiveResultReponse = json_decode(implode(" ", $receiveResult));
print_r($receiveResultReponse);($receiveResultReponse);

反应:

stdClass Object
(
    [id] => INV2-DZF4-Y9AU-4L7U-ZF7W
    [number] => 0122
    [status] => SENT
    [merchant_info] => stdClass Object
        (
...
    [metadata] => stdClass Object
        (
            [created_date] => 2015-08-31 02:22:21 PDT
            [first_sent_date] => 2015-08-31 02:22:22 PDT
            [last_sent_date] => 2015-08-31 02:22:22 PDT
            [payer_view_url] => https://www.sandbox.paypal.com/cgi_bin/webscr?cmd=_pay-inv&viewtype=altview&id=INV2-DZF4-Y9AU-4L7U-ZF7W
        )
)

没有收到客户的发票邮件。

Sandbox不发送邮件…

电子邮件地址不需要是真实的电子邮件地址;

REF:创建沙盒测试帐户

您可以:

    <
  1. 检查通知/gh>
  2. 作为您的沙箱买家登录Paypal沙箱网站-您应该看到买方收到的发票

Hth…

最新更新