Use the PaymentDetails object
masterThe PaymentDetails object is used to represent the details of a payment, specifically capturing the receipt identifier and the payment method used. You can import it using the Xendit\Invoice\PaymentDetails namespace.
use Xendit\Invoice\PaymentDetails;