Why is the payment not functioning correctly when I preview or embed it?