[MODIFIED] Changed CreatePayment method to recieve byte[] as input