How to enable calculation in payment form?