checkoututility

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: MIT Imports: 3 Imported by: 0

README

Go API client for checkoututility

A web service containing utility functions available for merchants integrating with Checkout APIs.

Authentication

Each request to the Checkout Utility API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in How to get the API key. Then set this key to the X-API-Key header value, for example:

curl
-H \"Content-Type: application/json\" \\
-H \"X-API-Key: Your_Checkout_API_key\" \\
...

Note that when going live, you need to generate a new API Key to access the live endpoints.

Versioning

Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: "vXX", where XX is the version number.

For example:

https://checkout-test.adyen.com/v1/originKeys

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen For more information, please visit https://support.adyen.com/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutUtility

type CheckoutUtility common.Service

CheckoutUtility CheckoutUtility service

func (CheckoutUtility) OriginKeys

OriginKeys Create originKey values for one or more merchant domains. This operation takes the origin domains and returns a JSON object containing the corresponding origin keys for the domains.

  • @param request CheckoutUtilityRequest - reference of CheckoutUtilityRequest).
  • @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return CheckoutUtilityResponse

type CheckoutUtilityRequest

type CheckoutUtilityRequest struct {
	// The list of origin domains, for which origin keys are requested.
	OriginDomains []string `json:"originDomains"`
}

CheckoutUtilityRequest struct for CheckoutUtilityRequest

type CheckoutUtilityResponse

type CheckoutUtilityResponse struct {
	// The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key.
	OriginKeys *map[string]interface{} `json:"originKeys,omitempty"`
}

CheckoutUtilityResponse struct for CheckoutUtilityResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL