Get refunded transaction-fee in webhook
Martho
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-18-2019
03:10 AM
Hello,
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.
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Webhook event not received in sandbox account in Sandbox Environment
- Paypal checkout module for OXID doesn't send payment status(on OXID) after payment in REST APIs
- How do I set up PayPal With Easy Digital Downloads and confirm the setup with Paypal? in REST APIs
- Webhooks for subscription are fireing in a random order? in REST APIs
- WHMCS PayPal Payment Issue in REST APIs