New to the community? Welcome! Please read our Community Rules and Guidelines
Join the live Q&A with our Community moderator team Wednesdays, 1-2pm PT (4-5pm ET) and Fridays, 4-5pm GMT. Learn more in Community Events
I'm using the PHP-SDK. I'm hooking into PAYMENT.SALE.REFUNDED. What I want to get is the refunded transactionfee for this refund. I found RefundDetail::getRefundFromTransactionFee, but how do I get a RefundDetail-Object? My code is like:
$resource = $webhookEvent->getResource();
$Refund = \Paypal\Api\Refund::get($resource->id, $api);
So I got an instance of \Paypal\Api\Refund but NOT an instance of \Paypal\Api\RefundDetail.
©1999-2019 PayPal, Inc. All rights reserved.