I followed the documentation on setting up the Single-element payment form, and as I already have the users post code I’d like to pre-populate it to make the process easier. However, I’ve added the following code as per the docs but although the callback executes, the post code isn’t set in the UI.
These are actually two separate issues. The other one was about replacing the ZIP placeholder text, but this one is about actually setting the post code value.