Ensure 'payment_details' are set before calling createPaymentMethod. This change prevents potential errors when custom payment methods without 'payment_details' are used.
Closes #3076599