matching payment method api with backend