【发布时间】: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
)
)
没有收到客户的发票电子邮件。
【问题讨论】: