Design a Payment API