correct key generation on payment processing
reduce stock only when payment is completed
translate codes into messages for order notes