【问题标题】:Clients don't receive email when using Paypal REST api send invoice使用 Paypal REST api 发送发票时,客户收不到电子邮件
【发布时间】:2015-11-25 07:32:28
【问题描述】:

我已经创建并向客户发送了发票,然后我使用检索发票进行检查。状态为已发送,但客户未收到任何邮件发票。这是我的代码:

$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
        )

)

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

【问题讨论】:

    标签: php curl paypal


    【解决方案1】:

    沙盒不发送电子邮件...

    电子邮件地址不必是真实的电子邮件地址;沙盒不会在沙盒环境之外发送任何电子邮件。

    参考号:Creating Sandbox Test Accounts

    你可以:

    1. 检查Notifications
    2. 在 Paypal Sandbox site 中以您的沙盒买家身份登录 - 您应该会看到买家收到的发票

    第...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-05
      • 2020-04-17
      • 2016-07-07
      • 2018-09-11
      • 2021-06-04
      • 2016-10-26
      • 1970-01-01
      • 2014-02-08
      相关资源
      最近更新 更多