func GetPayment(c *nordeago.Client, country string, paymentID string, skipAccessControl bool) (*Payment, error) {
	responseType := &Payment{}
	result := nordeago.Result{Response: responseType}
	endpoint := nordeago.ReplaceVariable(getEndpointFromCountry(country)+"/{{paymentId}}", "paymentId", paymentID)
	var headers map[string]string
	if skipAccessControl {
		headers = make(map[string]string)
		headers["X-Response-Scenarios"] = "AuthorizationSkipAccessControl"
	}
	response, err := c.GetWithAccessToken(endpoint, headers)
	if err != nil {
		return responseType, err
	}
	defer response.Body.Close()
	_, err = c.HandleResponse(response, &result)
	return responseType, err
}
GetPayment returns a nordeago.Result with pis.Payment as the response
package pis
import (
	"errors"
	"github.com/markustenghamn/nordeago"
	"net/http"
)
func GetPayments(c *nordeago.Client, country string) (*PaymentsResponse, error) {
	responseType := &PaymentsResponse{}
	result := nordeago.Result{Response: responseType}
	endpoint := getEndpointFromCountry(country)
	response, err := c.GetWithAccessToken(endpoint, nil)
	if err != nil {
		return responseType, err
	}
	defer response.Body.Close()
	_, err = c.HandleResponse(response, &result)
	return responseType, err
}
func InitiatePayment(c *nordeago.Client, country string, request InitiatePaymentRequest, skipAccessControl bool) (bool, error) {
	endpoint := getEndpointFromCountry(country)
	var headers map[string]string
	if skipAccessControl {
		headers = make(map[string]string)
		headers["X-Response-Scenarios"] = "AuthorizationSkipAccessControl"
	}
	response, err := c.PostWithAccessToken(endpoint, request, headers)
	if err != nil {
		return false, err
	}
	defer response.Body.Close()
	if response.StatusCode == http.StatusCreated {
		return true, nil
	}
	err = errors.New("Request returned status " + string(response.StatusCode))
	return false, err
}