Can I create a payment form that automatically calculates the total purchases?