Functions in paymentservice.h