doc, fixes, factorize IPN and Payment