Fix pdf generation after success payment