Core payment library