implemented the payment service