我有一个检索贝宝销售信息的功能。
https://api.paypal.com/v1/payments/sale/'。$ sTransactionId;
现在我注意到,在检索数据时,它显示出基于API的不同结果,付款是从
执行的(例如ebay,paypalplus,express)。
特别是,它没有显示某些交易对退款ID的引用。
我需要检查并保存退款信息的
所有退款都是通过Paypal UI手工完成的
问题:
有人知道为什么会这样吗?
还是更好的喷气机,有人知道如何通过我在“付款/销售/”请求中无法获得退款ID(父母付款)的交易吗?
JSON响应
:未获得退款信息(快速,易趣)
array(12) {
["id"]=>
string(17) "61S"
["state"]=>
string(8) "refunded"
["amount"]=>
array(3) {
["total"]=>
string(6) "324.76"
["currency"]=>
string(3) "EUR"
["details"]=>
array(2) {
["subtotal"]=>
string(6) "324.76"
["shipping"]=>
string(5) "16.98"
}
}
["payment_mode"]=>
string(16) "INSTANT_TRANSFER"
["protection_eligibility"]=>
string(8) "ELIGIBLE"
["protection_eligibility_type"]=>
string(56) "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE"
["transaction_fee"]=>
array(2) {
["value"]=>
string(4) "5.19"
["currency"]=>
string(3) "EUR"
}
["invoice_number"]=>
string(12) "90"
["custom"]=>
string(26) "Bestellnummer 90"
["create_time"]=>
string(20) "2019-01-30T08:56:02Z"
["update_time"]=>
string(20) "2019-01-31T09:50:50Z"
["links"]=>
array(2) {
[0]=>
array(3) {
["href"]=>
string(57) "https://api.paypal.com/v1/payments/sale/61S"
["rel"]=>
string(4) "self"
["method"]=>
string(3) "GET"
}
[1]=>
array(3) {
["href"]=>
string(64) "https://api.paypal.com/v1/payments/sale/61S/refund"
["rel"]=>
string(6) "refund"
["method"]=>
string(4) "POST"
}
}
}
</pre>
获取退款信息(贝宝加)
array(12) {
["id"]=>
string(17) "8CU"
["state"]=>
string(8) "refunded"
["amount"]=>
array(3) {
["total"]=>
string(6) "180.12"
["currency"]=>
string(3) "EUR"
["details"]=>
array(2) {
["subtotal"]=>
string(6) "158.16"
["shipping"]=>
string(5) "21.96"
}
}
["payment_mode"]=>
string(16) "INSTANT_TRANSFER"
["protection_eligibility"]=>
string(8) "ELIGIBLE"
["protection_eligibility_type"]=>
string(56) "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE"
["transaction_fee"]=>
array(2) {
["value"]=>
string(4) "3.03"
["currency"]=>
string(3) "EUR"
}
["invoice_number"]=>
string(0) ""
["parent_payment"]=>
string(30) "PAYID-LRDR"
["create_time"]=>
string(20) "2019-01-22T13:50:13Z"
["update_time"]=>
string(20) "2019-01-31T07:22:13Z"
["links"]=>
array(3) {
[0]=>
array(3) {
["href"]=>
string(57) "https://api.paypal.com/v1/payments/sale/8CU"
["rel"]=>
string(4) "self"
["method"]=>
string(3) "GET"
}
[1]=>
array(3) {
["href"]=>
string(64) "https://api.paypal.com/v1/payments/sale/8CU/refund"
["rel"]=>
string(6) "refund"
["method"]=>
string(4) "POST"
}
[2]=>
array(3) {
["href"]=>
string(73) "https://api.paypal.com/v1/payments/payment/PAYID-LRDR"
["rel"]=>
string(14) "parent_payment"
["method"]=>
string(3) "GET"
}
}
}
</pre>