简体   繁体   English

发票API:如何获得付款费用?

[英]Invoice API: How to get payment fee?

I am currently using the PayPal Invoice API to create, send, and get status of PayPal invoices. 我目前正在使用PayPal发票API来创建,发送和获取PayPal发票的状态。

I am getting Sent/Paid/Error status using the GetInvoiceDetails API. 我正在使用GetInvoiceDetails API获得“已发送/已付款/错误”状态。

See https://developer.paypal.com/docs/classic/api/invoicing/GetInvoiceDetails_API_Operation/ 参见https://developer.paypal.com/docs/classic/api/invoicing/GetInvoiceDetails_API_Operation/

I am attempting to get the PayPal fee charged from a Paid invoice, but I cannot find it anywhere in the documentation. 我正在尝试从已付款的发票中收取PayPal费用,但我无法在文档中的任何地方找到它。

How can I get the PayPal fee from a paid invoice using the Invoice API? 如何使用Invoice API从已付款的发票中获取PayPal费用?

Regarding your query, Once you get the PaypalPaymentid in GetInvoiceDetails API call then you can make a further API call ( GetTransactionDetails) with that transaction id . 关于您的查询,一旦在GetInvoiceDetails API调用中获得PaypalPaymentid,您就可以使用该交易ID进行另一个API调用(GetTransactionDetails)。 This will give you the fee details charged for that invoice. 这将为您提供该发票的费用明细。 I have tried at my end and it worked for me and should work for you as well. 我尽力了,对我有用,也应该对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM