Fixes to paymentgateway,client creation,inventory