diff --git a/hmrc-vat.php b/hmrc-vat.php index cd9a4a2..ffe0bcf 100644 --- a/hmrc-vat.php +++ b/hmrc-vat.php @@ -91,7 +91,7 @@ private function format_amount($decimals, $amount) { public function response_details($response_object) { - $details = array( + return array( 'collection_date' => strval($response_object->Body->SuccessResponse->ResponseData->VATDeclarationResponse->Body->PaymentNotification->DirectDebitPaymentStatus->CollectionDate), );