Purchase bug fix

Pending item quantity issue
Authentication update