adjust metered billing and three d secure endpoints and added test