diff --git a/modules/ppcp-api-client/src/Factory/RefundFactory.php b/modules/ppcp-api-client/src/Factory/RefundFactory.php index 0ee41f29e..6911b490a 100644 --- a/modules/ppcp-api-client/src/Factory/RefundFactory.php +++ b/modules/ppcp-api-client/src/Factory/RefundFactory.php @@ -63,6 +63,7 @@ class RefundFactory { * @param \stdClass $data The PayPal response. * * @return Refund + * @throws RuntimeException When refund amount data is invalid. */ public function from_paypal_response( \stdClass $data ) : Refund { $reason = $data->status_details->reason ?? null;