fixed the scope issue in payment
fixed the date format in js