payment gateway fix undefined index ['img']