It's considered best practice to pay as soon as possible after the end of the listing. If you aren't able to pay right away it's best to not place a bid in the first place. Not every seller will be understanding enough to give you extra time to pay. Some will open unpaid item disputes as soon as possible.
Here is how the unpaid item process works.