我试图检查 Paypal 发票在向付款人发送电子邮件时的样子,但是,API 似乎没有发送电子邮件。在 api 响应中,有一个发票 URL,我能够看到它,但它需要付款人登录。 API 是否向付款人的电子邮件发送电子邮件?
最佳答案
来自 PayPal Invoice API 文档:
To use the Invoicing API to request payment, you start by making one of the Invoicing API calls to PayPal. Your customer receives the invoice via email and clicks on an included link to view the invoice on PayPal's website. Customers who have a PayPal account can log into their PayPal accounts to pay the invoice. Customers can also pay using a check, debit, or credit card. (https://developer.paypal.com/docs/classic/invoicing/gs_Invoicing/)
只要 API 的 JSON 响应中的“ack”字段显示“成功”值,买家就会发送一封电子邮件。他或她必须点击链接并登录才能完成付款。
JSON 响应示例:
{
"responseEnvelope": {
"timestamp": "2011-06-16T:12:30.861-07:00",
"ack": "Success",
"correlationId": "78733df04b1f0",
"build": "1942837"
},
"invoiceID": "INV2-C4AK-UU3J-5SCL-9KZY",
"invoiceNumber": "1192",
"invoiceURL": "invoiceURL"
}
所以你的问题的答案是是;
关于paypal - 如何查看 PayPal Invoice API 发送的示例电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20793631/