Created a method which retrieves the api_payment_endpoint for the payment provider.