Allow setting the payment detail type to null. Closes #51