On line 72
(i try taking off the $result lastname and the customer name indeed show only the firstname. So i assume the fault is something related to here.)'name' => $result['firstname'] . ' ' . $result['lastname'],
However the code seems to be fine but i have no idea why is it showing duplicate firstname. any one knows how to solve this?