How to create a contract and payment form?