Fix several bugs

customerId was not set when customer existed in createPaymentMethod
error codes and error results were not properly handled in createPaymentMethod and createCustomer