make createOrder() return all data (not just ID)

This is because the returned data contains important information (esp. the payment URL -- for if you wish to use Pwinty's payment gateway)