Debug the purchasing method.