func GetB64Encoding(ctx ContextInterface) (bool, error) {
	paymentAPIVersion, err := getPaymentAPIVersion(ctx)
	if err != nil {
		return false, errors.New("NewJWSSignature: cannot find payment apiversion: " + err.Error())
	}

	b64encoding, err := getB64Encoding(paymentAPIVersion)
	if err != nil {
		return false, errors.New("NewJWSSignature: cannot getB64Encoding " + err.Error())
	}

	return b64encoding, nil
}
// GetB64Encoding returns - based on the API version - if the TPP signature should use base64 encoding for the payload
GetB64Encoding returns - based on the API version - if the TPP signature should use base64 encoding for the payload
// GetB64Encoding returns - based on the API version - if the TPP signature should use base64 encoding for the payload
func GetB64Encoding(ctx ContextInterface) (bool, error) {
	paymentAPIVersion, err := getPaymentAPIVersion(ctx)
	if err != nil {
		return false, errors.New("NewJWSSignature: cannot find payment apiversion: " + err.Error())
	}
	b64encoding, err := getB64Encoding(paymentAPIVersion)
	if err != nil {
		return false, errors.New("NewJWSSignature: cannot getB64Encoding " + err.Error())
	}
	return b64encoding, nil
}
func GetB64Encoding ( ctx ContextInterface ) ( bool , error ) { paymentAPIVersion , err := getPaymentAPIVersion ( ctx ) if err != nil { return false , errors . New ( " " + err . Error ( ) ) } b64encoding , err := getB64Encoding ( paymentAPIVersion ) if err != nil { return false , errors . New ( " " + err . Error ( ) ) } return b64encoding , nil }
GetB64Encoding returns - based on the API version - if the TPP signature should use base64 encoding for the payload
GetB64Encoding returns - based on the API version - if the TPP signature should use base64 encoding for the payload