When an payment request with the same merchantPaymentID value is created after the completion of the payment, the CREATED status is returned for completed payments, as the get payment details obtains the payment code status for the payment request that was not used for payment.
Please make sure to implement the payment request creation so that a unique merchantPaymentID is used.