Worldline Connect Python SDK¶
Introduction¶
The Python SDK helps you to communicate with the Worldline Connect Server API. Its primary features are:
- convenient Python library for the API calls and responses
- marshalls Python request objects to HTTP requests
- unmarshalls HTTP responses to Python response objects or Python exceptions
- handling of all the details concerning authentication
- handling of required metadata
Its use is demonstrated by an example for each possible call. The examples execute a call using the provided API keys.
See the Worldline Connect Developer Hub for more information on how to use the SDK.
Structure of this repository¶
This repository consists out of four main components:
- The source code of the SDK itself:
/worldline/connect/sdk/
- The source code of the SDK unit tests:
/tests/unit/
- The source code of the SDK integration tests:
/tests/integration/
- Usage examples:
/examples/
Note that the source code of the unit tests and integration tests and the examples can only be found on GitHub.
Requirements¶
Python 2.7 is required. In addition, the following packages are required:
- requests 2.25.0 or higher
- requests-toolbelt 0.8.0 or higher
These packages will be installed automatically if the SDK is installed manually or using pip following the below instructions.
Installation¶
To install the SDK using pip, execute the following command:
pip install connect-sdk-python2
Alternatively, you can install the SDK from a source distribution file:
Download the latest version of the Python SDK from GitHub. Choose the
connect-sdk-python2-x.y.z.zip
file from the releases page, wherex.y.z
is the version number.Execute the following command in the folder where the SDK was downloaded to:
pip install connect-sdk-python2-x.y.z.zip
Uninstalling¶
After the Python SDK has been installed, it can be uninstalled using the following command:
pip uninstall connect-sdk-python2
The required packages can be uninstalled in the same way.
Running tests¶
There are two types of tests: unit tests and integration tests. The unit tests will work out-of-the-box; for the integration tests some configuration is required. First, some environment variables need to be set:
connect.api.apiKeyId
for the API key id to use. This can be retrieved from the Configuration Center.connect.api.secretApiKey
for the secret API key to use. This can be retrieved from the Configuration Center.connect.api.merchantId
for your merchant ID.
In addition, to run the proxy integration tests, the proxy URI, username and password should be set in the tests/resources/configuration.proxy.ini
file.
In order to run the unit and integration tests, the mock backport and mockito are required. These can be installed using the following command:
pip install mock 'mockito<1.3.1'
The following commands can now be executed from the tests
directory to execute the tests:
Unit tests:
python run_unit_tests.py
Integration tests:
python run_integration_tests.py
Both unit and integration tests:
python run_all_tests.py
Note: in the current version of the unit tests, two errors will pop up ([Errno 10053] for Windows and [Errno 32] for Linux), indicating that there was a client disconnect. These errors occur during cleanup of the tests and do not hinder the tests in any way, and should therefore be ignored.
API Reference¶
-
class
worldline.connect.sdk.api_resource.
ApiResource
(parent=None, communicator=None, path_context=None, client_meta_info=None)[source]¶ Bases:
object
Base class of all Worldline Global Collect platform API resources.
-
class
worldline.connect.sdk.call_context.
CallContext
(idempotence_key=None)[source]¶ Bases:
object
A call context can be used to send extra information with a request, and to receive extra information from a response.
Please note that this class is not thread-safe. Each request should get its own call context instance.
-
__init__
(idempotence_key=None)[source]¶ Sets the idempotence key to use for the next request for which this call context is used.
-
idempotence_key
¶ Returns: The idempotence key.
-
idempotence_request_timestamp
¶ Returns: The idempotence request timestamp from the response to the last request for which this call context was used, or None if no idempotence request timestamp was present.
-
-
class
worldline.connect.sdk.client.
Client
(communicator, client_meta_info=None)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
,worldline.connect.sdk.log.logging_capable.LoggingCapable
,worldline.connect.sdk.log.obfuscation_capable.ObfuscationCapable
Worldline Global Collect platform client.
This client and all its child clients are bound to one specific value for the X-GCS-ClientMetaInfo header. To get a new client with a different header value, use with_client_meta_info.
Thread-safe.
-
__abstractmethods__
= frozenset([])¶
-
__init__
(communicator, client_meta_info=None)[source]¶ Parameters: - communicator –
worldline.connect.sdk.communicator.Communicator
- client_meta_info – str
- communicator –
-
close_expired_connections
()[source]¶ Utility method that delegates the call to this client’s communicator.
-
close_idle_connections
(idle_time)[source]¶ Utility method that delegates the call to this client’s communicator.
Parameters: idle_time – a datetime.timedelta object indicating the idle time
-
enable_logging
(communicator_logger)[source]¶ Turns on logging using the given communicator logger.
Raises: ValueError – If the given communicator logger is None.
-
with_client_meta_info
(client_meta_info)[source]¶ Parameters: client_meta_info – JSON string containing the metadata for the client Returns: a new Client which uses the passed metadata for the X-GCS-ClientMetaInfo header. Raises: MarshallerSyntaxException – if the given clientMetaInfo is not a valid JSON string
-
-
class
worldline.connect.sdk.communicator.
Communicator
(api_endpoint, connection, authenticator, metadata_provider, marshaller)[source]¶ Bases:
worldline.connect.sdk.log.logging_capable.LoggingCapable
,worldline.connect.sdk.log.obfuscation_capable.ObfuscationCapable
Used to communicate with the Worldline Global Collect platform web services.
It contains all the logic to transform a request object to an HTTP request and an HTTP response to a response object.
-
__abstractmethods__
= frozenset([])¶
-
close_expired_connections
()[source]¶ Utility method that delegates the call to this communicator’s connection if that’s an instance of PooledConnection. If not this method does nothing.
-
close_idle_connections
(idle_time)[source]¶ Utility method that delegates the call to this communicator’s connection if that’s an instance of PooledConnection. If not this method does nothing.
Parameters: idle_time – a datetime.timedelta object indicating the idle time
-
delete
(relative_path, request_headers, request_parameters, response_type, context)[source]¶ Corresponds to the HTTP DELETE method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- response_type – The type of response to return.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
delete_with_binary_response
(relative_path, request_headers, request_parameters, context)[source]¶ Corresponds to the HTTP DELETE method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
enable_logging
(communicator_logger)[source]¶ Turns on logging using the given communicator logger.
Raises: ValueError – If the given communicator logger is None.
-
get
(relative_path, request_headers, request_parameters, response_type, context)[source]¶ Corresponds to the HTTP GET method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- response_type – The type of response to return.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
get_with_binary_response
(relative_path, request_headers, request_parameters, context)[source]¶ Corresponds to the HTTP GET method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
marshaller
¶ Returns: The Marshaller object associated with this communicator. Never None.
-
post
(relative_path, request_headers, request_parameters, request_body, response_type, context)[source]¶ Corresponds to the HTTP POST method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- request_body – The optional request body to send.
- response_type – The type of response to return.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
post_with_binary_response
(relative_path, request_headers, request_parameters, request_body, context)[source]¶ Corresponds to the HTTP POST method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- request_body – The optional request body to send.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
put
(relative_path, request_headers, request_parameters, request_body, response_type, context)[source]¶ Corresponds to the HTTP PUT method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- request_body – The optional request body to send.
- response_type – The type of response to return.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
put_with_binary_response
(relative_path, request_headers, request_parameters, request_body, context)[source]¶ Corresponds to the HTTP PUT method.
Parameters: - relative_path – The path to call, relative to the base URI.
- request_headers – An optional list of request headers.
- request_parameters – An optional set of request parameters.
- request_body – The optional request body to send.
- context – The optional call context to use.
Raises: - CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
- ResponseException – when an error response was received from the Worldline Global Collect platform
-
-
class
worldline.connect.sdk.communicator_configuration.
CommunicatorConfiguration
(properties=None, api_endpoint=None, authorization_id=None, authorization_secret=None, api_key_id=None, secret_api_key=None, authorization_type=None, connect_timeout=None, socket_timeout=None, max_connections=None, proxy_configuration=None, integrator=None, shopping_cart_extension=None)[source]¶ Bases:
object
Configuration for the communicator.
-
DEFAULT_MAX_CONNECTIONS
= 10¶
-
__init__
(properties=None, api_endpoint=None, authorization_id=None, authorization_secret=None, api_key_id=None, secret_api_key=None, authorization_type=None, connect_timeout=None, socket_timeout=None, max_connections=None, proxy_configuration=None, integrator=None, shopping_cart_extension=None)[source]¶ Parameters: - properties – a ConfigParser.ConfigParser object containing configuration data
- connect_timeout – connection timeout for the network communication in seconds
- socket_timeout – socket timeout for the network communication in seconds
- max_connections – The maximum number of connections in the connection pool
-
api_endpoint
¶ The Worldline Global Collect platform API endpoint URI.
-
api_key_id
¶ An identifier for the secret API key. The api_key_id can be retrieved from the Configuration Center. This identifier is visible in the HTTP request and is also used to identify the correct account.
This property is an alias for authorization_id
An id used for authorization. The meaning of this id is different for each authorization type. For instance, for v1HMAC this is the identifier for the secret API key.
A secret used for authorization. The meaning of this secret is different for each authorization type. For instance, for v1HMAC this is the secret API key.
-
connect_timeout
¶ Connection timeout for the underlying network communication in seconds
-
integrator
¶
-
max_connections
¶
-
proxy_configuration
¶
-
secret_api_key
¶ A shared secret. The shared secret can be retrieved from the Configuration Center. An api_key_id and secret_api_key always go hand-in-hand, the difference is that secret_api_key is never visible in the HTTP request. This secret is used as input for the HMAC algorithm.
This property is an alias for authorization_secret
-
shopping_cart_extension
¶
-
socket_timeout
¶ Socket timeout for the underlying network communication in seconds
-
-
class
worldline.connect.sdk.factory.
Factory
[source]¶ Bases:
object
Worldline Global Collect platform factory for several SDK components.
-
static
create_client_from_communicator
(communicator)[source]¶ Create a Client based on the settings stored in the Communicator argument
-
static
create_client_from_configuration
(communicator_configuration, metadata_provider=None, connection=None, authenticator=None, marshaller=None)[source]¶ Create a Client based on the configuration stored in the CommunicatorConfiguration argument
-
static
create_client_from_file
(configuration_file_name, authorization_id, authorization_secret, metadata_provider=None, connection=None, authenticator=None, marshaller=None)[source]¶ Creates a Client based on the configuration values in configuration_file_name, authorization_id and authorization_secret.
-
static
create_communicator_from_configuration
(communicator_configuration, metadata_provider=None, connection=None, authenticator=None, marshaller=None)[source]¶ Creates a Communicator based on the configuration stored in the CommunicatorConfiguration argument
-
static
create_communicator_from_file
(configuration_file_name, authorization_id, authorization_secret, metadata_provider=None, connection=None, authenticator=None, marshaller=None)[source]¶ Creates a Communicator based on the configuration values in configuration_file_name, api_id_key and authorization_secret.
-
static
-
class
worldline.connect.sdk.proxy_configuration.
ProxyConfiguration
(host, port, scheme='http', username=None, password=None)[source]¶ Bases:
object
HTTP proxy configuration.
Can be initialised directly from a host and port or can be constructed from a uri using fromuri
-
__str__
()[source]¶ Return a proxy string in the form scheme://username:password@host:port or scheme://host:port if authentication is absent
Supports HTTP Basic Auth
-
static
from_uri
(uri, username=None, password=None)[source]¶ Constructs a ProxyConfiguration from a URI; if username and/or password are given they will be used instead of corresponding data in the URI
-
host
¶
-
password
¶
-
port
¶
-
scheme
¶
-
username
¶
-
-
class
worldline.connect.sdk.authentication.authenticator.
Authenticator
[source]¶ Bases:
object
Used to authenticate requests to the Worldline Global Collect platform.
-
__abstractmethods__
= frozenset(['get_authorization'])¶
Returns a value that can be used for the “Authorization” header.
Parameters: - http_method – The HTTP method.
- resource_uri – The URI of the resource.
- request_headers – A sequence of RequestHeaders. This sequence may not be modified and may not contain headers with the same name.
-
Bases:
object
-
class
worldline.connect.sdk.authentication.v1hmac_authenticator.
V1HMACAuthenticator
(api_key_id, secret_api_key)[source]¶ Bases:
worldline.connect.sdk.authentication.authenticator.Authenticator
Authenticator implementation using v1HMAC signatures.
-
__abstractmethods__
= frozenset([])¶
-
__init__
(api_key_id, secret_api_key)[source]¶ Parameters: - api_key_id – An identifier for the secret API key. The api_key_id can be retrieved from the Configuration Center. This identifier is visible in the HTTP request and is also used to identify the correct account.
- secret_api_key – A shared secret. The shared secret can be retrieved from the Configuration Center. An api_key_id and secret_api_key always go hand-in-hand, the difference is that secret_api_key is never visible in the HTTP request. This secret is used as input for the HMAC algorithm.
Returns a v1HMAC authentication signature header
-
-
exception
worldline.connect.sdk.communication.communication_exception.
CommunicationException
(exception)[source]¶ Bases:
exceptions.RuntimeError
Indicates an exception regarding the communication with the Worldline Global Collect platform such as a connection exception.
-
class
worldline.connect.sdk.communication.connection.
Connection
[source]¶ Bases:
worldline.connect.sdk.log.logging_capable.LoggingCapable
,worldline.connect.sdk.log.obfuscation_capable.ObfuscationCapable
Represents a connection to the Worldline Global Collect platform server.
-
__abstractmethods__
= frozenset(['set_header_obfuscator', 'get', 'set_body_obfuscator', 'disable_logging', 'put', 'post', 'enable_logging', 'delete'])¶
-
delete
(url, request_headers)[source]¶ Send a DELETE request to the Worldline Global Collect platform and return the response.
Parameters: - url – The URI to call, including any necessary query parameters.
- request_headers – An optional sequence of request headers.
Returns: The response from the Worldline Global Collect platform as a tuple with the status code, headers and a generator of body chunks
Raises: CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
-
get
(url, request_headers)[source]¶ Send a GET request to the Worldline Global Collect platform and return the response.
Parameters: - url – The URI to call, including any necessary query parameters.
- request_headers – An optional sequence of request headers.
Returns: The response from the Worldline Global Collect platform as a tuple with the status code, headers and a generator of body chunks
Raises: CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
-
post
(url, request_headers, body)[source]¶ Send a POST request to the Worldline Global Collect platform and return the response.
Parameters: - url – The URI to call, including any necessary query parameters.
- request_headers – An optional sequence of request headers.
- body – The optional body to send.
Returns: The response from the Worldline Global Collect platform as a tuple with the status code, headers and a generator of body chunks
Raises: CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
-
put
(url, request_headers, body)[source]¶ Send a PUT request to the Worldline Global Collect platform and return the response.
Parameters: - url – The URI to call, including any necessary query parameters.
- request_headers – An optional sequence of request headers.
- body – The optional body to send.
Returns: The response from the Worldline Global Collect platform as a tuple with the status code, headers and a generator of body chunks
Raises: CommunicationException – when an exception occurred communicating with the Worldline Global Collect platform
-
-
class
worldline.connect.sdk.communication.default_connection.
DefaultConnection
(connect_timeout, socket_timeout, max_connections=10, proxy_configuration=None)[source]¶ Bases:
worldline.connect.sdk.communication.pooled_connection.PooledConnection
Provides an HTTP request interface, thread-safe
Parameters: - connect_timeout – timeout in seconds before a pending connection is dropped
- socket_timeout – timeout in seconds before dropping an established connection. This is the time the server is allowed for a response
- max_connections – the maximum number of connections in the connection pool
- proxy_configuration – ProxyConfiguration object that contains data about proxy settings if present. It should be writeable as string and have a scheme attribute.
Use the methods get, delete, post and put to perform the corresponding HTTP request. Alternatively you can use request with the request method as the first parameter.
URI, headers and body should be given on a per-request basis.
-
__abstractmethods__
= frozenset([])¶
-
close_idle_connections
(idle_time)[source]¶ Parameters: idle_time – a datetime.timedelta object indicating the idle time
-
connect_timeout
¶ Connection timeout in seconds
-
delete
(url, request_headers)[source]¶ Perform a request to the server given by url
Parameters: - url – the url to the server, given as a parsed url
- request_headers – a sequence containing RequestHeader objects representing the request headers
-
enable_logging
(communicator_logger)[source]¶ Turns on logging using the given communicator logger.
Raises: ValueError – If the given communicator logger is None.
-
get
(url, request_headers)[source]¶ Perform a request to the server given by url
Parameters: - url – the url to the server, given as a parsed url
- request_headers – a sequence containing RequestHeader objects representing the request headers
-
post
(url, request_headers, body)[source]¶ Perform a request to the server given by url
Parameters: - url – the url to the server, given as a parsed url
- request_headers – a sequence containing RequestHeader objects representing the request headers
- body – the request body
-
put
(url, request_headers, body)[source]¶ Perform a request to the server given by url
Parameters: - url – the url to the server, given as a parsed url
- request_headers – a sequence containing RequestHeader objects representing the request headers
- body – the request body
-
socket_timeout
¶ Socket timeout in seconds
-
class
worldline.connect.sdk.communication.metadata_provider.
MetadataProvider
(integrator, shopping_cart_extension=None, additional_request_headers=())[source]¶ Bases:
object
Provides meta info about the server.
-
metadata_headers
¶ Returns: The server related headers containing the metadata to be associated with the request (if any). This will always contain at least an automatically generated header X-GCS-ServerMetaInfo.
-
prohibited_headers
= ('Authorization', 'Content-Type', 'Date', 'X-GCS-Idempotence-Key', 'X-GCS-ServerMetaInfo')¶
-
-
class
worldline.connect.sdk.communication.multipart_form_data_object.
MultipartFormDataObject
[source]¶ Bases:
object
A representation of a multipart/form-data object.
-
boundary
¶
-
content_type
¶
-
files
¶
-
values
¶
-
-
class
worldline.connect.sdk.communication.multipart_form_data_request.
MultipartFormDataRequest
[source]¶ Bases:
object
A representation of a multipart/form-data request.
-
__abstractmethods__
= frozenset(['to_multipart_form_data_object'])¶
-
-
exception
worldline.connect.sdk.communication.not_found_exception.
NotFoundException
(exception, message)[source]¶ Bases:
exceptions.RuntimeError
Indicates an exception that occurs when the requested resource is not found. In normal usage of the SDK, this exception should not occur, however it is possible. For example when path parameters are set with invalid values.
-
class
worldline.connect.sdk.communication.param_request.
ParamRequest
[source]¶ Bases:
object
Represents a set of request parameters.
-
__abstractmethods__
= frozenset(['to_request_parameters'])¶
-
-
class
worldline.connect.sdk.communication.pooled_connection.
PooledConnection
[source]¶ Bases:
worldline.connect.sdk.communication.connection.Connection
Represents a pooled connection to the Worldline Global Collect platform server. Instead of setting up a new HTTP connection for each request, this connection uses a pool of HTTP connections.
-
__abstractmethods__
= frozenset(['set_header_obfuscator', 'get', 'close_expired_connections', 'set_body_obfuscator', 'disable_logging', 'close_idle_connections', 'put', 'post', 'enable_logging', 'delete'])¶
-
-
class
worldline.connect.sdk.communication.request_header.
RequestHeader
(name, value)[source]¶ Bases:
object
A single request header. Immutable.
-
name
¶ Returns: The header name.
-
value
¶ Returns: The un-encoded value.
-
-
worldline.connect.sdk.communication.request_header.
get_header
(headers, header_name)[source]¶ Returns: The header with the given name, or None if there was no such header.
-
worldline.connect.sdk.communication.request_header.
get_header_value
(headers, header_name)[source]¶ Returns: The value of the header with the given name, or None if there was no such header.
-
class
worldline.connect.sdk.communication.request_param.
RequestParam
(name, value)[source]¶ Bases:
object
A single request parameter. Immutable.
-
name
¶ Returns: The parameter name.
-
value
¶ Returns: The un-encoded value.
-
-
exception
worldline.connect.sdk.communication.response_exception.
ResponseException
(status, body, headers)[source]¶ Bases:
exceptions.RuntimeError
Thrown when a response was received from the Worldline Global Collect platform which indicates an error.
-
body
¶ Returns: The raw response body that was returned by the Worldline Global Collect platform.
-
get_header
(header_name)[source]¶ Returns: The header with the given name, or None if there was no such header.
-
get_header_value
(header_name)[source]¶ Returns: The value header with the given name, or None if there was no such header.
-
headers
¶ Returns: The headers that were returned by the Worldline Global Collect platform. Never None.
-
status_code
¶ Returns: The HTTP status code that was returned by the Worldline Global Collect platform.
-
-
worldline.connect.sdk.communication.response_header.
get_disposition_filename
(headers)[source]¶ Returns: The value of the filename parameter of the Content-Disposition header, or None if there was no such header or parameter.
-
worldline.connect.sdk.communication.response_header.
get_header
(headers, header_name)[source]¶ Returns: The header with the given name as a tuple with the name and value, or None if there was no such header.
-
worldline.connect.sdk.communication.response_header.
get_header_value
(headers, header_name)[source]¶ Returns: The value of the header with the given name, or None if there was no such header.
-
class
worldline.connect.sdk.domain.shopping_cart_extension.
ShoppingCartExtension
(creator, name, version, extension_id=None)[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
creator
¶
-
extension_id
¶
-
name
¶
-
version
¶
-
-
class
worldline.connect.sdk.domain.uploadable_file.
UploadableFile
(file_name, content, content_type, content_length=-1)[source]¶ Bases:
object
A file that can be uploaded.
The allowed forms of content are defined by the Connection implementation. The default implementation supports strings, file descriptors and io.BytesIO objects.
-
content
¶ Returns: The file’s content.
-
content_length
¶ Returns: The file’s content length, or -1 if not known.
-
content_type
¶ Returns: The file’s content type.
-
file_name
¶ Returns: The name of the file.
-
-
class
worldline.connect.sdk.json.default_marshaller.
DefaultMarshaller
[source]¶ Bases:
worldline.connect.sdk.json.marshaller.Marshaller
Marshaller implementation based on json.
-
__abstractmethods__
= frozenset([])¶
-
marshal
(request_object)[source]¶ Marshal a request object to a JSON string.
Parameters: request_object – the object to marshal into a serialized JSON string Returns: the serialized JSON string of the request_object
-
unmarshal
(response_json, type_class)[source]¶ Unmarshal a JSON string to a response object.
Parameters: - response_json – the json body that should be unmarshalled
- type_class – The class to which the response_json should be unmarshalled
Raises: MarshallerSyntaxException – if the JSON is not a valid representation for an object of the given type
-
-
class
worldline.connect.sdk.json.marshaller.
Marshaller
[source]¶ Bases:
object
Used to marshal and unmarshal Worldline Global Collect platform request and response objects to and from JSON.
-
__abstractmethods__
= frozenset(['unmarshal', 'marshal'])¶
-
marshal
(request_object)[source]¶ Marshal a request object to a JSON string.
Parameters: request_object – the object to marshal into a serialized JSON string Returns: the serialized JSON string of the request_object
-
unmarshal
(response_json, type_class)[source]¶ Unmarshal a JSON string to a response object.
Parameters: - response_json – the json body that should be unmarshalled
- type_class – The class to which the response_json should be unmarshalled
Raises: MarshallerSyntaxException – if the JSON is not a valid representation for an object of the given type
-
-
exception
worldline.connect.sdk.json.marshaller_syntax_exception.
MarshallerSyntaxException
(cause=None)[source]¶ Bases:
exceptions.RuntimeError
Thrown when a JSON string cannot be converted to a response object.
-
class
worldline.connect.sdk.log.body_obfuscator.
BodyObfuscator
(additional_rules=None)[source]¶ Bases:
object
A class that can be used to obfuscate properties in JSON bodies.
-
__init__
(additional_rules=None)[source]¶ Creates a new body obfuscator. This will contain some pre-defined obfuscation rules, as well as any provided custom rules
Parameters: additional_rules – An optional mapping from property names to obfuscation rules, where an obfuscation rule is a function that obfuscates a single string,
-
-
class
worldline.connect.sdk.log.communicator_logger.
CommunicatorLogger
[source]¶ Bases:
object
Used to log messages from communicators.
-
__abstractmethods__
= frozenset(['log'])¶
-
-
class
worldline.connect.sdk.log.header_obfuscator.
HeaderObfuscator
(additional_rules=None)[source]¶ Bases:
object
A class that can be used to obfuscate headers.
-
__init__
(additional_rules=None)[source]¶ Creates a new header obfuscator. This will contain some pre-defined obfuscation rules, as well as any provided custom rules
Parameters: additional_rules – An optional mapping from property names to obfuscation rules, where an obfuscation rule is a function that obfuscates a single string,
-
-
class
worldline.connect.sdk.log.log_message.
LogMessage
(request_id, body_obfuscator=<worldline.connect.sdk.log.body_obfuscator.BodyObfuscator object>, header_obfuscator=<worldline.connect.sdk.log.header_obfuscator.HeaderObfuscator object>)[source]¶ Bases:
object
A utility class to build log messages.
-
__abstractmethods__
= frozenset(['get_message'])¶
-
body
¶
-
content_type
¶
-
headers
¶
-
request_id
¶
-
-
class
worldline.connect.sdk.log.logging_capable.
LoggingCapable
[source]¶ Bases:
object
Classes that extend this class have support for log messages from communicators.
-
__abstractmethods__
= frozenset(['disable_logging', 'enable_logging'])¶
-
-
class
worldline.connect.sdk.log.obfuscation_capable.
ObfuscationCapable
[source]¶ Bases:
object
Classes that extend this class support obfuscating bodies and headers.
-
__abstractmethods__
= frozenset(['set_header_obfuscator', 'set_body_obfuscator'])¶
-
-
worldline.connect.sdk.log.obfuscation_rule.
obfuscate_all
()[source]¶ Returns an obfuscation rule (function) that will replace all characters with *
-
worldline.connect.sdk.log.obfuscation_rule.
obfuscate_all_but_first
(count)[source]¶ Returns an obfuscation rule (function) that will keep a fixed number of characters at the start, then replaces all other characters with *
-
worldline.connect.sdk.log.obfuscation_rule.
obfuscate_all_but_last
(count)[source]¶ Returns an obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with *
-
worldline.connect.sdk.log.obfuscation_rule.
obfuscate_with_fixed_length
(fixed_length)[source]¶ Returns an obfuscation rule (function) that will replace values with a fixed length string containing only *
-
class
worldline.connect.sdk.log.python_communicator_logger.
PythonCommunicatorLogger
(logger, log_level, error_log_level=None)[source]¶ Bases:
worldline.connect.sdk.log.communicator_logger.CommunicatorLogger
A communicator logger that is backed by the log library.
-
__abstractmethods__
= frozenset([])¶
-
__init__
(logger, log_level, error_log_level=None)[source]¶ Logs messages to the argument logger using the argument log_level. If absent, the error_log_level will be equal to the log_level. Note that if the CommunicatorLogger’s log level is lower than the argument logger’s log level (e.g. the CommunicatorLogger is given log.INFO as level and the argument logger has a level of log.WARNING), then nothing will be logged to the logger.
Parameters: - logger – the logger to log to
- log_level – the log level that will be used for non-error messages logged via the CommunicatorLogger
- error_log_level – the log level that will be used for error messages logged via the CommunicatorLogger.
-
log
(message, thrown=None)[source]¶ Log a message to the underlying logger. If thrown is absent, the message will be logged with the CommunicatorLogger’s log_level, if a thrown object is provided, the message and exception will be logged with the CommunicatorLogger’s error_log_level.
Parameters: - message – the message to be logged
- thrown – an optional throwable object
-
-
class
worldline.connect.sdk.log.request_log_message.
RequestLogMessage
(request_id, method, uri, body_obfuscator=<worldline.connect.sdk.log.body_obfuscator.BodyObfuscator object>, header_obfuscator=<worldline.connect.sdk.log.header_obfuscator.HeaderObfuscator object>)[source]¶ Bases:
worldline.connect.sdk.log.log_message.LogMessage
A utility class to build request log messages.
-
__abstractmethods__
= frozenset([])¶
-
-
class
worldline.connect.sdk.log.response_log_message.
ResponseLogMessage
(request_id, status_code, duration=-1, body_obfuscator=<worldline.connect.sdk.log.body_obfuscator.BodyObfuscator object>, header_obfuscator=<worldline.connect.sdk.log.header_obfuscator.HeaderObfuscator object>)[source]¶ Bases:
worldline.connect.sdk.log.log_message.LogMessage
A utility class to build request log messages.
-
__abstractmethods__
= frozenset([])¶
-
-
class
worldline.connect.sdk.log.sys_out_communicator_logger.
SysOutCommunicatorLogger
[source]¶ Bases:
worldline.connect.sdk.log.communicator_logger.CommunicatorLogger
A communicator logger that prints its message to sys.stdout It includes a timestamp in yyyy-MM-ddTHH:mm:ss format in the system time zone.
-
__abstractmethods__
= frozenset([])¶
-
-
exception
worldline.connect.sdk.v1.api_exception.
ApiException
(status_code, response_body, error_id, errors, message='the Worldline Global Collect platform returned an error response')[source]¶ Bases:
exceptions.RuntimeError
Represents an error response from the Worldline Global Collect platform which contains an ID and a list of errors.
-
error_id
¶ Returns: The errorId received from the Worldline Global Collect platform if available.
-
errors
¶ Returns: The errors received from the Worldline Global Collect platform if available. Never None.
-
response_body
¶ Returns: The raw response body that was returned by the Worldline Global Collect platform.
-
status_code
¶ Returns: The HTTP status code that was returned by the Worldline Global Collect platform.
-
Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from the Worldline Global Collect platform when authorization failed.
-
exception
worldline.connect.sdk.v1.declined_payment_exception.
DeclinedPaymentException
(status_code, response_body, response)[source]¶ Bases:
worldline.connect.sdk.v1.declined_transaction_exception.DeclinedTransactionException
Represents an error response from a create payment call.
-
create_payment_result
¶ Returns: The result of creating a payment if available, otherwise None.
-
-
exception
worldline.connect.sdk.v1.declined_payout_exception.
DeclinedPayoutException
(status_code, response_body, response)[source]¶ Bases:
worldline.connect.sdk.v1.declined_transaction_exception.DeclinedTransactionException
Represents an error response from a payout call.
-
payout_result
¶ Returns: The result of creating a payout if available, otherwise None.
-
-
exception
worldline.connect.sdk.v1.declined_refund_exception.
DeclinedRefundException
(status_code, response_body, response)[source]¶ Bases:
worldline.connect.sdk.v1.declined_transaction_exception.DeclinedTransactionException
Represents an error response from a refund call.
-
refund_result
¶ Returns: The result of creating a refund if available, otherwise None.
-
-
exception
worldline.connect.sdk.v1.declined_transaction_exception.
DeclinedTransactionException
(status_code, response_body, error_id, errors, message=None)[source]¶ Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from a create payment, payout or refund call.
-
worldline.connect.sdk.v1.exception_factory.
create_exception
(status_code, body, error_object, context)[source]¶ Return a raisable API exception based on the error object given
-
exception
worldline.connect.sdk.v1.idempotence_exception.
IdempotenceException
(idempotence_key, idempotence_request_timestamp, status_code, response_body, error_id, errors, message='the Worldline Global Collect platform returned a duplicate request error response')[source]¶ Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from the Worldline Global Collect platform when an idempotent request failed because the first request has not finished yet.
-
idempotence_key
¶ Returns: The key that was used for the idempotent request.
-
idempotence_request_timestamp
¶ Returns: The request timestamp of the first idempotent request with the same key.
-
-
exception
worldline.connect.sdk.v1.platform_exception.
PlatformException
(status_code, response_body, error_id, errors, message='the Worldline Global Collect platform returned an error response')[source]¶ Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from the Worldline Global Collect platform when something went wrong at the Worldline Global Collect platform or further downstream.
-
exception
worldline.connect.sdk.v1.reference_exception.
ReferenceException
(status_code, response_body, error_id, errors, message='the Worldline Global Collect platform returned a reference error response')[source]¶ Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from the Worldline Global Collect platform when a non-existing or removed object is trying to be accessed.
-
class
worldline.connect.sdk.v1.v1_client.
V1Client
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
V1 client.
Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
merchant
(merchant_id)[source]¶ Resource /{merchantId}
Parameters: merchant_id – str Returns: worldline.connect.sdk.v1.merchant.merchant_client.MerchantClient
-
-
exception
worldline.connect.sdk.v1.validation_exception.
ValidationException
(status_code, response_body, error_id, errors, message='the Worldline Global Collect platform returned an incorrect request error response')[source]¶ Bases:
worldline.connect.sdk.v1.api_exception.ApiException
Represents an error response from the Worldline Global Collect platform when validation of requests failed.
-
class
worldline.connect.sdk.v1.domain.abstract_bank_transfer_payment_method_specific_input.
AbstractBankTransferPaymentMethodSpecificInput
[source]¶ -
-
additional_reference
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.abstract_card_payment_method_specific_input.
AbstractCardPaymentMethodSpecificInput
[source]¶ -
-
acquirer_promotion_code
¶ Type: str
Type: str
-
customer_reference
¶ Type: str
-
initial_scheme_transaction_id
¶ Type: str
-
recurring_payment_sequence_indicator
¶ Type: str
Deprecated; Use recurring.recurringPaymentSequenceIndicator instead
-
requires_approval
¶ Type: bool
-
skip_authentication
¶ Type: bool
Deprecated; Use threeDSecure.skipAuthentication instead
-
skip_fraud_service
¶ Type: bool
-
token
¶ Type: str
-
tokenize
¶ Type: bool
-
transaction_channel
¶ Type: str
-
unscheduled_card_on_file_indicator
¶ Type: str
Deprecated; Use unscheduledCardOnFileSequenceIndicator instead
-
unscheduled_card_on_file_requestor
¶ Type: str
-
unscheduled_card_on_file_sequence_indicator
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.abstract_cash_payment_method_specific_input.
AbstractCashPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.abstract_e_invoice_payment_method_specific_input.
AbstractEInvoicePaymentMethodSpecificInput
[source]¶ -
-
requires_approval
¶ Type: bool
-
-
class
worldline.connect.sdk.v1.domain.abstract_indicator.
AbstractIndicator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
name
¶ Type: str
-
value
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.abstract_order_status.
AbstractOrderStatus
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
id
¶ - Every payment entity resource has an identifier or pointer associated with it. This id can be used to uniquely reach the resource.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.abstract_payment_method_specific_input.
AbstractPaymentMethodSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.abstract_payment_method_specific_output.
AbstractPaymentMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.abstract_payout_method_specific_input.
AbstractPayoutMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.abstract_redirect_payment_method_specific_input.
AbstractRedirectPaymentMethodSpecificInput
[source]¶ -
-
expiration_period
¶ Type: int
-
recurring_payment_sequence_indicator
¶ Type: str
-
requires_approval
¶ Type: bool
-
token
¶ Type: str
-
tokenize
¶ Type: bool
-
-
class
worldline.connect.sdk.v1.domain.abstract_redirect_payment_product4101_specific_input.
AbstractRedirectPaymentProduct4101SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.abstract_redirect_payment_product840_specific_input.
AbstractRedirectPaymentProduct840SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
address_selection_at_pay_pal
¶ Type: bool
-
-
class
worldline.connect.sdk.v1.domain.abstract_sepa_direct_debit_payment_method_specific_input.
AbstractSepaDirectDebitPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.abstract_sepa_direct_debit_payment_product771_specific_input.
AbstractSepaDirectDebitPaymentProduct771SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate_reference
¶ Type: str
Deprecated; Use existingUniqueMandateReference or mandate.uniqueMandateReference instead
-
-
class
worldline.connect.sdk.v1.domain.abstract_three_d_secure.
AbstractThreeDSecure
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
authentication_amount
¶ Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
authentication_flow
¶ Type: str
-
challenge_canvas_size
¶ Type: str
-
challenge_indicator
¶ Type: str
-
exemption_request
¶ Type: str
-
prior_three_d_secure_data
¶ Type:
worldline.connect.sdk.v1.domain.three_d_secure_data.ThreeDSecureData
-
sdk_data
¶ Type:
worldline.connect.sdk.v1.domain.sdk_data_input.SdkDataInput
-
skip_authentication
¶ Type: bool
-
transaction_risk_level
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.abstract_token.
AbstractToken
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
alias
¶ - An alias for the token. This can be used to visually represent the token.If no alias is given in Create token calls, a payment product specific default is used, e.g. the obfuscated card number for card payment products.Do not include any unobfuscated sensitive data in the alias.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.account_funding_recipient.
AccountFundingRecipient
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing specific data regarding the recipient of an account funding transaction-
account_number
¶ - Should be populated with the value of the corresponding accountNumberType of the recipient.
Type: str
-
account_number_type
¶ - Defines the account number type of the recipient. Possible values are:
- cash = Mode of payment is cash to the recipient.
- walletId = Digital wallet ID.
- routingNumber = Routing Transit Number is a code used by financial institutions to identify other financial institutions.
- iban = International Bank Account Number, is a standard international numbering system for identifying bank accounts.
- bicNumber = Bank Identification Code is a number that is used to identify a specific bank.
- giftCard = Gift card is a type of prepaid card that contains a specific amount of money that can be used at participating stores and marketplaces.
Type: str
-
address
¶ - Object containing the address details of the recipient of an account funding transaction.
-
date_of_birth
¶ - The date of birth of the recipientFormat: YYYYMMDD
Type: str
-
name
¶ - Object containing the name details of the recipient of an account funding transaction.
-
partial_pan
¶ - Either partialPan or accountnumber is required for merchants that use Merchant Category Code (MCC) 6012 for transactions involving UK costumers.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.account_on_file.
AccountOnFile
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Elements from the AccountsOnFile array-
attributes
¶ - Array containing the details of the stored token
Type: list[
worldline.connect.sdk.v1.domain.account_on_file_attribute.AccountOnFileAttribute
]
-
display_hints
¶ - Object containing information for the client on how best to display this field
Type:
worldline.connect.sdk.v1.domain.account_on_file_display_hints.AccountOnFileDisplayHints
-
id
¶ - ID of the account on file record
Type: int
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.account_on_file_attribute.
AccountOnFileAttribute
[source]¶ Bases:
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
-
must_write_reason
¶ - The reason why the status is MUST_WRITE. Currently only “IN_THE_PAST” is possible as value (for expiry date), but this can be extended with new values in the future.
Type: str
-
status
¶ - Possible values:
- READ_ONLY - attribute cannot be updated and should be presented in that way to the user
- CAN_WRITE - attribute can be updated and should be presented as an editable field, for example an expiration date that will expire very soon
- MUST_WRITE - attribute should be updated and must be presented as an editable field, for example an expiration date that has already expired
Any updated values that are entered for CAN_WRITE or MUST_WRITE will be used to update the values stored in the token.Type: str
-
-
class
worldline.connect.sdk.v1.domain.account_on_file_display_hints.
AccountOnFileDisplayHints
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
label_template
¶ - Array of attribute keys and their mask
Type: list[
worldline.connect.sdk.v1.domain.label_template_element.LabelTemplateElement
]
-
logo
¶ - Partial URL that you can reference for the image of this payment product. You can use our server-side resize functionality by appending ‘?size={{width}}x{{height}}’ to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.additional_order_input.
AdditionalOrderInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
account_funding_recipient
¶ - Object containing specific data regarding the recipient of an account funding transaction
Type:
worldline.connect.sdk.v1.domain.account_funding_recipient.AccountFundingRecipient
-
airline_data
¶ - Object that holds airline specific data
Type:
worldline.connect.sdk.v1.domain.airline_data.AirlineData
-
installments
¶ - Object containing data related to installments which can be used for card payments and only with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
Type:
worldline.connect.sdk.v1.domain.installments.Installments
-
level3_summary_data
¶ - Object that holds Level3 summary data
Type:
worldline.connect.sdk.v1.domain.level3_summary_data.Level3SummaryData
Deprecated; Use Order.shoppingCart.amountBreakdown instead
-
loan_recipient
¶ - Object containing specific data regarding the recipient of a loan in the UK
Type:
worldline.connect.sdk.v1.domain.loan_recipient.LoanRecipient
Deprecated; No replacement
-
lodging_data
¶ - Object that holds lodging specific data
Type:
worldline.connect.sdk.v1.domain.lodging_data.LodgingData
-
number_of_installments
¶ - The number of installments in which this transaction will be paid, which can be used for card payments. Only used with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
Type: long
Deprecated; Use installments.numberOfInstallments instead
-
order_date
¶ - Date and time of orderFormat: YYYYMMDDHH24MISS
Type: str
-
type_information
¶ - Object that holds the purchase and usage type indicators
Type:
worldline.connect.sdk.v1.domain.order_type_information.OrderTypeInformation
-
-
class
worldline.connect.sdk.v1.domain.additional_order_input_airline_data.
AdditionalOrderInputAirlineData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
airline_data
¶ - Object that holds airline specific data
Type:
worldline.connect.sdk.v1.domain.airline_data.AirlineData
-
lodging_data
¶ - Object that holds lodging specific data
Type:
worldline.connect.sdk.v1.domain.lodging_data.LodgingData
-
-
class
worldline.connect.sdk.v1.domain.address.
Address
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_info
¶ - Additional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Type: str
-
city
¶ - CityNote: For payments with product 1503 the maximum length is not 40 but 20.
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
house_number
¶ - House number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
Type: str
-
state
¶ - Full name of the state or province
Type: str
-
state_code
¶ - ISO 3166-2 alpha-3 state codeNotes:
- The maximum length for 3-D Secure version 2 is AN3 for payments that are processed by the GlobalCollect platform
- The maximum length for paymentProductId 1503 (Boleto) is AN2 for payments that are processed by the GlobalCollect platform
- The maximum length is 3 for payments that are processed by the WL Online Payment Acceptance platform
Type: str
-
street
¶ - Streetname
Type: str
-
zip
¶ - Zip codeNote: For payments with product 1503 the maximum length is not 10 but 8.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.address_personal.
AddressPersonal
[source]¶ Bases:
worldline.connect.sdk.v1.domain.address.Address
-
name
¶ - Object that holds the name elements
Type:
worldline.connect.sdk.v1.domain.personal_name.PersonalName
-
-
class
worldline.connect.sdk.v1.domain.afr_name.
AfrName
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
first_name
¶ - Given name(s) or first name(s) of the recipient of an account funding transaction.
Type: str
-
surname
¶ - Surname(s) or last name(s) of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.airline_data.
AirlineData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
agent_numeric_code
¶ - Numeric code identifying the agent
Type: str
-
code
¶ - Airline numeric code
Type: str
-
flight_date
¶ - Date of the FlightFormat: YYYYMMDD
Type: str
-
flight_legs
¶ - Object that holds the data on the individual legs of the ticket
Type: list[
worldline.connect.sdk.v1.domain.airline_flight_leg.AirlineFlightLeg
]
-
invoice_number
¶ - Airline tracing number
Type: str
-
is_e_ticket
¶ - true = The ticket is an E-Ticket
- false = the ticket is not an E-Ticket
Type: bool
-
is_registered_customer
¶ - true = a registered known customer
- false = unknown customer
Type: bool
Deprecated; Use Order.customer.accountType instead
-
is_restricted_ticket
¶ - true - Restricted, the ticket is non-refundable
- false - No restrictions, the ticket is (partially) refundable
Type: bool
-
is_third_party
¶ - true - The payer is the ticket holder
- false - The payer is not the ticket holder
Type: bool
-
issue_date
¶ - This is the date of issue recorded in the airline systemIn a case of multiple issuances of the same ticket to a cardholder, you should use the last ticket date.Format: YYYYMMDD
Type: str
-
merchant_customer_id
¶ - Your ID of the customer in the context of the airline data
Type: str
-
name
¶ - Name of the airline
Type: str
-
number_in_party
¶ - Total number of passengers in the party. If the the property numberInParty is not present, then the number of passengers will be used on the WL Online Payment Acceptance Platform.
Type: int
-
passenger_name
¶ - Name of passenger
Type: str
-
passengers
¶ - Object that holds the data on the individual passengers (this object is used for fraud screening on the Ogone Payment Platform)
Type: list[
worldline.connect.sdk.v1.domain.airline_passenger.AirlinePassenger
]
-
place_of_issue
¶ - Place of issueFor sales in the US the last two characters (pos 14-15) must be the US state code.
Type: str
-
pnr
¶ - Passenger name record
Type: str
-
point_of_sale
¶ - IATA point of sale name
Type: str
-
pos_city_code
¶ - city code of the point of sale
Type: str
-
ticket_delivery_method
¶ - Possible values:
- e-ticket
- city-ticket-office
- airport-ticket-office
- ticket-by-mail
- ticket-on-departure
Type: str
-
ticket_number
¶ - The ticket or document number. On the Ogone Payment Platform and the GlobalCollect Payment Platform it contains:
- Airline code: 3-digit airline code number
- Form code: A maximum of 3 digits indicating the type of document, the source of issue and the number of coupons it contains
- Serial number: A maximum of 8 digits allocated on a sequential basis, provided that the total number of digits allocated to the form code and serial number shall not exceed ten
- TICKETNUMBER can be replaced with PNR if the ticket number is unavailable
Type: str
-
total_fare
¶ - Total fare for all legs on the ticket, excluding taxes and fees. If multiple tickets are purchased, this is the total fare for all tickets
Type: int
-
total_fee
¶ - Total fee for all legs on the ticket. If multiple tickets are purchased, this is the total fee for all tickets
Type: int
-
total_taxes
¶ - Total taxes for all legs on the ticket. If multiple tickets are purchased, this is the total taxes for all tickets
Type: int
-
travel_agency_name
¶ - Name of the travel agency issuing the ticket. For direct airline integration, leave this property blank on the Ogone Payment Platform.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.airline_flight_leg.
AirlineFlightLeg
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
airline_class
¶ - Reservation Booking Designator
Type: str
-
arrival_airport
¶ - Arrival airport/city code
Type: str
-
arrival_time
¶ - The arrival time in the local time zoneFormat: HH:MM
Type: str
-
carrier_code
¶ - IATA carrier code
Type: str
-
conjunction_ticket
¶ - Identifying number of a ticket issued to a passenger in conjunction with this ticket and that constitutes a single contract of carriage
Type: str
-
coupon_number
¶ - The coupon number associated with this leg of the trip. A ticket can contain several legs of travel, and each leg of travel requires a separate coupon
Type: str
-
date
¶ - Date of the legFormat: YYYYMMDD
Type: str
-
departure_time
¶ - The departure time in the local time at the departure airportFormat: HH:MM
Type: str
-
endorsement_or_restriction
¶ - An endorsement can be an agency-added notation or a mandatory government required notation, such as value-added tax. A restriction is a limitation based on the type of fare, such as a ticket with a 3-day minimum stay
Type: str
-
exchange_ticket
¶ - New ticket number that is issued when a ticket is exchanged
Type: str
-
fare
¶ - Fare of this leg
Type: str
-
fare_basis
¶ - Fare Basis/Ticket Designator
Type: str
-
fee
¶ - Fee for this leg of the trip
Type: int
-
flight_number
¶ - The flight number assigned by the airline carrier with no leading spacesShould be a numeric string
Type: str
-
number
¶ - Sequence number of the flight leg
Type: int
-
origin_airport
¶ - Origin airport/city code
Type: str
-
passenger_class
¶ - PassengerClass if this leg
Type: str
-
service_class
¶ - ServiceClass of this leg (this property is used for fraud screening on the Ogone Payment Platform).Possible values are:
- economy
- premium-economy
- business
- first
Type: str
Deprecated; Use passengerClass instead
-
stopover_code
¶ - Possible values are:
- permitted = Stopover permitted
- non-permitted = Stopover not permitted
Type: str
-
taxes
¶ - Taxes for this leg of the trip
Type: int
-
-
class
worldline.connect.sdk.v1.domain.airline_passenger.
AirlinePassenger
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
first_name
¶ - First name of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
Type: str
-
surname
¶ - Surname of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
Type: str
-
surname_prefix
¶ - Surname prefix of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
Type: str
-
title
¶ - Title of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
Type: str
-
-
class
worldline.connect.sdk.v1.domain.amount_breakdown.
AmountBreakdown
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount
¶ - Amount in cents and always having 2 decimals
Type: long
-
type
¶ - Type of the amount. Each type is only allowed to be provided once. Allowed values:
- AIRPORT_TAX - The amount of tax paid for the airport, with the last 2 digits implied as decimal places.
- CONSUMPTION_TAX - The amount of consumption tax paid by the customer, with the last 2 digits implied as decimal places.
- DISCOUNT - Discount on the entire transaction, with the last 2 digits implied as decimal places.
- DUTY - Duty on the entire transaction, with the last 2 digits implied as decimal places.
- HANDLING - Handling cost on the entire transaction, with the last 2 digits implied as decimal places.
- SHIPPING - Shipping cost on the entire transaction, with the last 2 digits implied as decimal places.
- TAX - Total tax paid on the entire transaction, with the last 2 digits implied as decimal places.
- VAT - Total amount of VAT paid on the transaction, with the last 2 digits implied as decimal places.
- BASE_AMOUNT - Order amount excluding all taxes, discount & shipping costs, with the last 2 digits implied as decimal places.Note: BASE_AMOUNT is only supported by the GlobalCollect and Ogone Payment Platforms.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.amount_of_money.
AmountOfMoney
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount
¶ - Amount in cents and always having 2 decimals
Type: long
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
-
class
worldline.connect.sdk.v1.domain.api_error.
APIError
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
category
¶ - Category the error belongs to. The category should give an indication of the type of error you are dealing with.Possible values:
- CONNECT_PLATFORM_ERROR - indicating that a functional error has occurred in the Connect platform.
- PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the Payment platform.
- IO_ERROR - indicating that a technical error has occurred within the Connect platform or between Connect and any of the payment platforms or third party systems.
Type: str
-
code
¶ - Error code
Type: str
-
http_status_code
¶ - HTTP status code for this error that can be used to determine the type of error
Type: int
-
id
¶ - ID of the error. This is a short human-readable message that briefly describes the error.
Type: str
-
message
¶ - Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
Type: str
-
property_name
¶ - Returned only if the error relates to a value that was missing or incorrect.Contains a location path to the value as a JSonata query <http://docs.jsonata.org/basic.html>.Some common examples:
- a.b selects the value of property b of root property a,
- a[1] selects the first element of the array in root property a,
- a[b=’some value’] selects all elements of the array in root property a that have a property b with value ‘some value’.
Type: str
-
request_id
¶ - ID of the request that can be used for debugging purposes
Type: str
-
-
class
worldline.connect.sdk.v1.domain.approve_payment_card_payment_method_specific_output.
ApprovePaymentCardPaymentMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
void_response_id
¶ - Result of the authorization reversal requestPossible values are:
- 00 - Successful reversal
- 0, 8 or 11 - Reversal request submitted
- 5 or 55 - Reversal request declined or referred
- empty or 98 - The provider did not provide a response
Type: str
-
-
class
worldline.connect.sdk.v1.domain.approve_payment_direct_debit_payment_method_specific_input.
ApprovePaymentDirectDebitPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.approve_payment_mobile_payment_method_specific_output.
ApprovePaymentMobilePaymentMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Mobile payment specific response data-
void_response_id
¶ - Result of the authorization reversal requestPossible values are:
- 00 - Successful reversal
- 0, 8 or 11 - Reversal request submitted
- 5 or 55 - Reversal request declined or referred
- empty or 98 - The provider did not provide a response
Type: str
-
-
class
worldline.connect.sdk.v1.domain.approve_payment_non_sepa_direct_debit_payment_method_specific_input.
ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.approve_payment_payment_method_specific_input.
ApprovePaymentPaymentMethodSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
date_collect
¶ - The desired date for the collectionFormat: YYYYMMDD
Type: str
-
token
¶ - Token containing tokenized bank account details
Type: str
-
-
class
worldline.connect.sdk.v1.domain.approve_payment_request.
ApprovePaymentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount
¶ - In case you want to approve the capture of a different lower amount you can specify this here (specified in cents, where single digit currencies are presumed to have 2 digits)
Type: long
-
direct_debit_payment_method_specific_input
¶ - Object that holds non-SEPA Direct Debit specific input data
-
order
¶ - Object that holds the order data
Type:
worldline.connect.sdk.v1.domain.order_approve_payment.OrderApprovePayment
-
sepa_direct_debit_payment_method_specific_input
¶ - Object that holds SEPA Direct Debit specific input data
-
-
class
worldline.connect.sdk.v1.domain.approve_payment_sepa_direct_debit_payment_method_specific_input.
ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.approve_payout_request.
ApprovePayoutRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
date_payout
¶ - The desired date for the payoutFormat: YYYYMMDD
Type: str
-
-
class
worldline.connect.sdk.v1.domain.approve_refund_request.
ApproveRefundRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount
¶ - Refund amount to be approved
Type: long
-
-
class
worldline.connect.sdk.v1.domain.approve_token_request.
ApproveTokenRequest
[source]¶ Bases:
worldline.connect.sdk.v1.domain.mandate_approval.MandateApproval
-
class
worldline.connect.sdk.v1.domain.authentication_indicator.
AuthenticationIndicator
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_indicator.AbstractIndicator
Indicates if the payment product supports 3D Security (mandatory, optional or not needed).
-
class
worldline.connect.sdk.v1.domain.bank_account.
BankAccount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
account_holder_name
¶ - Name in which the account is held.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_account_bban.
BankAccountBban
[source]¶ Bases:
worldline.connect.sdk.v1.domain.bank_account.BankAccount
-
account_number
¶ - Bank account number
Type: str
-
bank_code
¶ - Bank code
Type: str
-
bank_name
¶ - Name of the bank
Type: str
-
branch_code
¶ - Branch code
Type: str
-
check_digit
¶ - Bank check digit
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code of the country where the bank account is heldFor UK payouts this value is automatically set to GB as only payouts to UK accounts are supported.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_account_bban_refund.
BankAccountBbanRefund
[source]¶ Bases:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_city
¶ - City of the bank to refund to
Type: str
-
patronymic_name
¶ - Every Russian has three names: a first name, a patronymic, and a surname. The second name is a patronymic. Russian patronymic is a name derived from the father’s first name by adding -ович/-евич (son of) for male, or -овна/-евна (daughter of) for females.
Type: str
-
swift_code
¶ - The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_account_iban.
BankAccountIban
[source]¶ Bases:
worldline.connect.sdk.v1.domain.bank_account.BankAccount
-
iban
¶ - The IBAN is the International Bank Account Number. It is an internationally agreed format for the BBAN and includes the ISO country code and two check digits.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_data.
BankData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
new_bank_name
¶ - Bank name, matching the bank code of the request
Type: str
-
reformatted_account_number
¶ - Reformatted account number according to local clearing rules
Type: str
-
reformatted_bank_code
¶ - Reformatted bank code according to local clearing rules
Type: str
-
reformatted_branch_code
¶ - Reformatted branch code according to local clearing rules
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_details.
BankDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_bban
¶ - Object that holds the Basic Bank Account Number (BBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_account_iban
¶ - Object that holds the International Bank Account Number (IBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
-
class
worldline.connect.sdk.v1.domain.bank_details_request.
BankDetailsRequest
[source]¶ Bases:
worldline.connect.sdk.v1.domain.bank_details.BankDetails
-
class
worldline.connect.sdk.v1.domain.bank_details_response.
BankDetailsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_bban
¶ - Object that holds the Basic Bank Account Number (BBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_account_iban
¶ - Object that holds the International Bank Account Number (IBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
bank_data
¶ - Object that holds the reformatted bank account data
-
swift
¶ - Object that holds all the SWIFT routing information
-
-
class
worldline.connect.sdk.v1.domain.bank_refund_method_specific_input.
BankRefundMethodSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_bban
¶ - Object that holds the Basic Bank Account Number (BBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_bban_refund.BankAccountBbanRefund
-
bank_account_iban
¶ - Object that holds the International Bank Account Number (IBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
country_code
¶ - ISO 3166-1 alpha-2 country code of the country where money will be refunded to
Type: str
-
-
class
worldline.connect.sdk.v1.domain.bank_transfer_payment_method_specific_input.
BankTransferPaymentMethodSpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.bank_transfer_payment_method_specific_input_base.
BankTransferPaymentMethodSpecificInputBase
[source]¶
-
class
worldline.connect.sdk.v1.domain.bank_transfer_payment_method_specific_output.
BankTransferPaymentMethodSpecificOutput
[source]¶ -
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
-
class
worldline.connect.sdk.v1.domain.bank_transfer_payout_method_specific_input.
BankTransferPayoutMethodSpecificInput
[source]¶ -
-
bank_account_bban
¶ - Object containing account holder name and bank account information. This property can only be used for payouts in the UK.
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_account_iban
¶ - Object containing account holder and IBAN information.
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
customer
¶ - Object containing the details of the customer.
Type:
worldline.connect.sdk.v1.domain.payout_customer.PayoutCustomer
Deprecated; Moved to PayoutDetails
-
payout_date
¶ - Date of the payout sent to the bank by us.Format: YYYYMMDD
Type: str
-
payout_text
¶ - Text to be printed on the bank account statement of the beneficiary. The maximum allowed length might differ per country. The data will be automatically truncated to the maximum allowed length.
Type: str
-
swift_code
¶ - The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.boleto_bancario_requiredness_validator.
BoletoBancarioRequirednessValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fiscal_number_length
¶ - When performing a payment with Boleto Bancario, some values are only required when the fiscalnumber has a specific length. The length the fiscalnumber has to have to make the field required is defined here.For example the CompanyName is required when the fiscalnumber is a CNPJ. The firstname and surname are required when the fiscalnumber is a CPF.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.browser_data.
BrowserData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information regarding the browser of the customer-
color_depth
¶ - ColorDepth in bits. Value is returned from the screen.colorDepth property.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.Note: This data can only be collected if JavaScript is enabled in the browser. This means that 3-D Secure version 2.1 requires the use of JavaScript to enabled. In the upcoming version 2.2 of the specification this is no longer a requirement. As we currently support version 2.1 it means that this property is required when cardPaymentMethodSpecifInput.threeDSecure.authenticationFlow is set to “browser”.
Type: int
-
inner_height
¶ - The innerHeight of the frame in case you are capturing your payments in a frame. We will use this to validate if the height provided in the cardPaymentMethodSpecifInput.threeDSecure.challengeCanvasSize will actually fit in the iFrame you use.
Type: str
-
inner_width
¶ - The innerWidth of the frame in case you are capturing your payments in a frame. We will use this to validate if the width provided in the cardPaymentMethodSpecifInput.threeDSecure.challengeCanvasSize will actually fit in the iFrame you use.
Type: str
-
java_enabled
¶ - true =Java is enabled in the browserfalse = Java is not enabled in the browserValue is returned from the navigator.javaEnabled property.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.Note: This data can only be collected if JavaScript is enabled in the browser. This means that 3-D Secure version 2.1 requires the use of JavaScript to enabled. In the upcoming version 2.2 of the specification this is no longer a requirement. As we currently support version 2.1 it means that this property is required when cardPaymentMethodSpecifInput.threeDSecure.authenticationFlow is set to “browser”.
Type: bool
-
java_script_enabled
¶ - true = JavaScript is enabled in the browserfalse = JavaScript is not enabled in the browserNote: Required in future 3-D Secure version 2.2.
Type: bool
-
screen_height
¶ - Height of the screen in pixels. Value is returned from the screen.height property.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.Note: This data can only be collected if JavaScript is enabled in the browser. This means that 3-D Secure version 2.1 requires the use of JavaScript to enabled. In the upcoming version 2.2 of the specification this is no longer a requirement. As we currently support version 2.1 it means that this property is required when cardPaymentMethodSpecifInput.threeDSecure.authenticationFlow is set to “browser”.
Type: str
-
screen_width
¶ - Width of the screen in pixels. Value is returned from the screen.width property.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.Note: This data can only be collected if JavaScript is enabled in the browser. This means that 3-D Secure version 2.1 requires the use of JavaScript to enabled. In the upcoming version 2.2 of the specification this is no longer a requirement. As we currently support version 2.1 it means that this property is required when cardPaymentMethodSpecifInput.threeDSecure.authenticationFlow is set to “browser”.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.cancel_approval_payment_response.
CancelApprovalPaymentResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment
¶ - Object that holds the payment related properties
-
-
class
worldline.connect.sdk.v1.domain.cancel_payment_card_payment_method_specific_output.
CancelPaymentCardPaymentMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Content of the cardPaymentMethodSpecificOutput object from the CancelPaymentResponse-
void_response_id
¶ - Result of the authorization reversal requestPossible values are:
- 00 - Successful reversal
- 0, 8 or 11 - Reversal request submitted
- 5 or 55 - Reversal request declined or referred
- empty or 98 - The provider did not provide a response
Type: str
-
-
class
worldline.connect.sdk.v1.domain.cancel_payment_mobile_payment_method_specific_output.
CancelPaymentMobilePaymentMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Content of the mobilePaymentMethodSpecificOutput object from the CancelPaymentResponse-
void_response_id
¶ - Result of the authorization reversal requestPossible values are:
- 00 - Successful reversal
- 0, 8 or 11 - Reversal request submitted
- 5 or 55 - Reversal request declined or referred
- empty or 98 - The provider did not provide a response
Type: str
-
-
class
worldline.connect.sdk.v1.domain.cancel_payment_response.
CancelPaymentResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Response to the cancelation of a payment-
card_payment_method_specific_output
¶ - Object that holds specific information on cancelled card payments
-
mobile_payment_method_specific_output
¶ - Object that holds specific information on cancelled mobile payments
-
payment
¶ - Object that holds the payment related properties
-
-
class
worldline.connect.sdk.v1.domain.capture.
Capture
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_order_status.AbstractOrderStatus
-
capture_output
¶ - Object containing capture details
Type:
worldline.connect.sdk.v1.domain.capture_output.CaptureOutput
-
status
¶ - Current high-level status of the payment in a human-readable form. Possible values are :
- CAPTURE_REQUESTED - The transaction is in the queue to be captured.
- CAPTURED - The transaction has been captured and we have received online confirmation.
- CANCELLED - You have cancelled the transaction.
- REJECTED_CAPTURE - We or one of our downstream acquirers/providers have rejected the capture request.
- REVERSED - The transaction has been reversed.
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_output
¶ - This object has the numeric representation of the current capture status, timestamp of last status change and performable action on the current payment resource.In case of failed payments and negative scenarios, detailed error information is listed.
Type:
worldline.connect.sdk.v1.domain.capture_status_output.CaptureStatusOutput
-
-
class
worldline.connect.sdk.v1.domain.capture_output.
CaptureOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.order_output.OrderOutput
-
amount_paid
¶ - Amount that has been paid
Type: long
-
amount_reversed
¶ - Amount that has been reversed
Type: long
-
bank_transfer_payment_method_specific_output
¶ - Object containing the bank transfer payment method details
-
card_payment_method_specific_output
¶ - Object containing the card payment method details
Type:
worldline.connect.sdk.v1.domain.card_payment_method_specific_output.CardPaymentMethodSpecificOutput
-
cash_payment_method_specific_output
¶ - Object containing the cash payment method details
Type:
worldline.connect.sdk.v1.domain.cash_payment_method_specific_output.CashPaymentMethodSpecificOutput
-
direct_debit_payment_method_specific_output
¶ - Object containing the non SEPA direct debit payment method details
-
e_invoice_payment_method_specific_output
¶ - Object containing the e-invoice payment method details
-
invoice_payment_method_specific_output
¶ - Object containing the invoice payment method details
-
mobile_payment_method_specific_output
¶ - Object containing the mobile payment method details
-
payment_method
¶ - Payment method identifier used by the our payment engine with the following possible values:
- bankRefund
- bankTransfer
- card
- cash
- directDebit
- eInvoice
- invoice
- redirect
Type: str
-
redirect_payment_method_specific_output
¶ - Object containing the redirect payment product details
-
reversal_reason
¶ - The reason description given for the reversedAmount property.
Type: str
-
sepa_direct_debit_payment_method_specific_output
¶ - Object containing the SEPA direct debit details
-
-
class
worldline.connect.sdk.v1.domain.capture_payment_request.
CapturePaymentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount
¶ - Here you can specify the amount that you want to capture (specified in cents, where single digit currencies are presumed to have 2 digits).The amount can be lower than the amount that was authorized, but not higher.If left empty, the full amount will be captured and the request will be final.If the full amount is captured, the request will also be final.
Type: long
-
is_final
¶ - This property indicates whether this will be the final capture of this transaction.The default value for this property is false.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.capture_status_output.
CaptureStatusOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
is_retriable
¶ - Flag indicating whether a rejected payment may be retried by the merchant without incurring a fee
- true
- false
Type: bool
-
provider_raw_output
¶ - This is the raw response returned by the acquirer. This property contains unprocessed data directly returned by the acquirer. It’s recommended for data analysis only due to its dynamic nature, which may undergo future changes.
Type: list[
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
]
-
status_code
¶ - Numeric status code of the legacy API. It is returned to ease the migration from the legacy APIs to Worldline Connect. You should not write new business logic based on this property as it will be deprecated in a future version of the API. The value can also be found in the GlobalCollect Payment Console, in the Ogone BackOffice and in report files.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.captures_response.
CapturesResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
captures
¶ - The list of all captures performed on the requested payment.
Type: list[
worldline.connect.sdk.v1.domain.capture.Capture
]
-
-
class
worldline.connect.sdk.v1.domain.card.
Card
[source]¶ Bases:
worldline.connect.sdk.v1.domain.card_without_cvv.CardWithoutCvv
-
cvv
¶ - Card Verification Value, a 3 or 4 digit code used as an additional security feature for card not present transactions.
Type: str
-
partial_pin
¶ - The first 2 digits of the card’s PIN code. May be optionally submitted for South Korean cards (paymentProductIds 180, 181, 182, 183, 184, 185 and 186). Submitting this property may improve your authorization rate.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.card_essentials.
CardEssentials
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card_number
¶ - The complete credit/debit card number
Type: str
-
cardholder_name
¶ - The card holder’s name on the card. Minimum length of 2, maximum length of 51 characters.
Type: str
-
expiry_date
¶ - Expiry date of the cardFormat: MMYY
Type: str
-
-
class
worldline.connect.sdk.v1.domain.card_fraud_results.
CardFraudResults
[source]¶ Bases:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
Details of the card payment fraud checks that were performed-
avs_result
¶ - Result of the Address Verification Service checks. Possible values are:
- A - Address (Street) matches, Zip does not
- B - Street address match for international transactions—Postal code not verified due to incompatible formats
- C - Street address and postal code not verified for international transaction due to incompatible formats
- D - Street address and postal code match for international transaction, cardholder name is incorrect
- E - AVS error
- F - Address does match and five digit ZIP code does match (UK only)
- G - Address information is unavailable; international transaction; non-AVS participant
- H - Billing address and postal code match, cardholder name is incorrect (Amex)
- I - Address information not verified for international transaction
- K - Cardholder name matches (Amex)
- L - Cardholder name and postal code match (Amex)
- M - Cardholder name, street address, and postal code match for international transaction
- N - No Match on Address (Street) or Zip
- O - Cardholder name and address match (Amex)
- P - Postal codes match for international transaction—Street address not verified due to incompatible formats
- Q - Billing address matches, cardholder is incorrect (Amex)
- R - Retry, System unavailable or Timed out
- S - Service not supported by issuer
- U - Address information is unavailable
- W - 9 digit Zip matches, Address (Street) does not
- X - Exact AVS Match
- Y - Address (Street) and 5 digit Zip match
- Z - 5 digit Zip matches, Address (Street) does not
- 0 - No service available
Type: str
-
cvv_result
¶ - Result of the Card Verification Value checks. Possible values are:
- M - CVV check performed and valid value
- N - CVV checked and no match
- P - CVV check not performed, not requested
- S - Cardholder claims no CVV code on card, issuer states CVV-code should be on card
- U - Issuer not certified for CVV2
- Y - Server provider did not respond
- 0 - No service available
Type: str
-
fraugster
¶ - Results of Fraugster fraud prevention check. Fraugster collects transaction data points such as name, email address, billing, etc. to analyze whether or not the transaction is fraudulent.
Type:
worldline.connect.sdk.v1.domain.fraugster_results.FraugsterResults
-
retail_decisions
¶ - Additional response data returned by RetailDecisions
Type:
worldline.connect.sdk.v1.domain.fraud_results_retail_decisions.FraudResultsRetailDecisions
-
-
class
worldline.connect.sdk.v1.domain.card_payment_method_specific_input.
CardPaymentMethodSpecificInput
[source]¶ -
-
card
¶ - Object containing card details. The card details will be ignored in case the property networkTokenData is present.
-
external_cardholder_authentication_data
¶ - Object containing 3D secure details.
Deprecated; Use threeDSecure.externalCardholderAuthenticationData instead
-
is_recurring
¶ - Indicates if this transaction is of a one-off or a recurring type
- true - This is recurring
- false - This is one-off
Type: bool
-
merchant_initiated_reason_indicator
¶ - Indicates reason behind the merchant initiated transaction. These are industry specific.Possible values:
- delayedCharges - Delayed charges are performed to process a supplemental account charge after original services have been rendered and respective payment has been processed. This is typically used in hotel, cruise lines and vehicle rental environments to perform a supplemental payment after the original services are rendered.
- noShow - Cardholders can use their cards to make a guaranteed reservation with certain merchant segments. A guaranteed reservation ensures that the reservation will be honored and allows a merchant to perform a No Show transaction to charge the cardholder a penalty according to the merchant’s cancellation policy. For merchants that accept token-based payment credentials to guarantee a reservation, it is necessary to perform a customer initiated (Account Verification) at the time of reservation to be able perform a No Show transaction later.
Type: str
-
network_token_data
¶ - Object holding data that describes a network token
Type:
worldline.connect.sdk.v1.domain.scheme_token_data.SchemeTokenData
-
return_url
¶ - The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
Deprecated; Use threeDSecure.redirectionData.returnUrl instead
-
three_d_secure
¶ - Object containing specific data regarding 3-D Secure
Type:
worldline.connect.sdk.v1.domain.three_d_secure.ThreeDSecure
-
-
class
worldline.connect.sdk.v1.domain.card_payment_method_specific_input_base.
CardPaymentMethodSpecificInputBase
[source]¶ -
-
three_d_secure
¶ - Object containing specific data regarding 3-D Secure
Type:
worldline.connect.sdk.v1.domain.three_d_secure_base.ThreeDSecureBase
-
-
class
worldline.connect.sdk.v1.domain.card_payment_method_specific_output.
CardPaymentMethodSpecificOutput
[source]¶ -
Card payment specific response data
- Card Authorization code as returned by the acquirer
Type: str
-
card
¶ - Object containing card details
Type:
worldline.connect.sdk.v1.domain.card_essentials.CardEssentials
-
fraud_results
¶ - Fraud results contained in the CardFraudResults object
Type:
worldline.connect.sdk.v1.domain.card_fraud_results.CardFraudResults
-
initial_scheme_transaction_id
¶ - The unique scheme transactionId of the initial transaction that was performed with SCA.Should be stored by the merchant to allow it to be submitted in future transactions.
Type: str
-
network_token_used
¶ - Indicates if a network token was used during the payment.
Type: bool
-
scheme_transaction_id
¶ - The unique scheme transactionId of this transaction.Should be stored by the merchant to allow it to be submitted in future transactions. Use this value in case the initialSchemeTransactionId property is empty.
Type: str
-
three_d_secure_results
¶ - 3D Secure results object
Type:
worldline.connect.sdk.v1.domain.three_d_secure_results.ThreeDSecureResults
-
token
¶ - If a token was used for or created during the payment, then the ID of that token.
Type: str
-
class
worldline.connect.sdk.v1.domain.card_payout_method_specific_input.
CardPayoutMethodSpecificInput
[source]¶ -
-
card
¶ - Object containing the card details.
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
recipient
¶ - Object containing the details of the recipient of the payout
Type:
worldline.connect.sdk.v1.domain.payout_recipient.PayoutRecipient
-
token
¶ - ID of the token that holds previously stored card data.If both the token and card are provided, then the card takes precedence over the token.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.card_recurrence_details.
CardRecurrenceDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
end_date
¶ - Date in YYYYMMDD after which there will be no further charges. If no value is provided we will set a default value of five years after we processed the first recurring transaction.
Type: str
-
min_frequency
¶ - Minimum number of days between authorizations. If no value is provided we will set a default value of 30 days.
Type: int
-
recurring_payment_sequence_indicator
¶ - first = This transaction is the first of a series of recurring transactions
- recurring = This transaction is a subsequent transaction in a series of recurring transactions
- last = This transaction is the last of a series of recurring transactions for payments that are processed by the WL Online Payment Acceptance platform
Note: For any first of a recurring the system will automatically create a token as you will need to use a token for any subsequent recurring transactions. In case a token already exists this is indicated in the response with a value of False for the isNewToken property in the response.Type: str
-
-
class
worldline.connect.sdk.v1.domain.card_without_cvv.
CardWithoutCvv
[source]¶ Bases:
worldline.connect.sdk.v1.domain.card_essentials.CardEssentials
-
issue_number
¶ - Issue number on the card (if applicable)
Type: str
-
-
class
worldline.connect.sdk.v1.domain.cash_payment_method_specific_input.
CashPaymentMethodSpecificInput
[source]¶ -
-
payment_product1503_specific_input
¶ - Object that holds the specific data for Boleto Bancario in Brazil (payment product 1503)
Deprecated; No replacement
-
payment_product1504_specific_input
¶ - Object that holds the specific data for Konbini in Japan (payment product 1504)
-
payment_product1521_specific_input
¶ - Object that holds the specific data for e-Pay (payment product 1521).
-
payment_product1522_specific_input
¶ - Object that holds the specific data for Tesco - Paysbuy Cash (payment product 1522).
-
payment_product1523_specific_input
¶ - Object that holds the specific data for ATM Transfers Indonesia(payment product 1523).
-
payment_product1524_specific_input
¶ - Object that holds the specific data for DragonPay (payment product 1524).
-
payment_product1526_specific_input
¶ - Object that holds the specific data for 7-11 MOLPay Cash (payment product 1526).
-
-
class
worldline.connect.sdk.v1.domain.cash_payment_method_specific_input_base.
CashPaymentMethodSpecificInputBase
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_method_specific_output.
CashPaymentMethodSpecificOutput
[source]¶ -
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1503_specific_input.
CashPaymentProduct1503SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Deprecated; No replacement
-
return_url
¶ - The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
Deprecated; No replacement, since Boleto Bancario no longer needs a return URL
-
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1504_specific_input.
CashPaymentProduct1504SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1521_specific_input.
CashPaymentProduct1521SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1522_specific_input.
CashPaymentProduct1522SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1523_specific_input.
CashPaymentProduct1523SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1524_specific_input.
CashPaymentProduct1524SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product1526_specific_input.
CashPaymentProduct1526SpecificInput
[source]¶
-
class
worldline.connect.sdk.v1.domain.cash_payment_product_with_redirect_specific_input_base.
CashPaymentProductWithRedirectSpecificInputBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
return_url
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.company_information.
CompanyInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
date_of_incorporation
¶ - The date of incorporation is the specific date when the company was registered with the relevant authority.Format: YYYYMMDD
Type: str
-
name
¶ - Name of company, as a customer
Type: str
-
vat_number
¶ - Local VAT number of the company
Type: str
-
-
class
worldline.connect.sdk.v1.domain.complete_payment_card_payment_method_specific_input.
CompletePaymentCardPaymentMethodSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card
¶ - Object containing card details
Type:
worldline.connect.sdk.v1.domain.card_without_cvv.CardWithoutCvv
-
-
class
worldline.connect.sdk.v1.domain.complete_payment_request.
CompletePaymentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card_payment_method_specific_input
¶ - Object containing the specific input details for card payments
-
merchant
¶ - Object containing information on you, the merchant
-
order
¶ - Order object containing order related data
-
-
class
worldline.connect.sdk.v1.domain.complete_payment_response.
CompletePaymentResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.create_payment_result.CreatePaymentResult
-
class
worldline.connect.sdk.v1.domain.contact_details.
ContactDetails
[source]¶ Bases:
worldline.connect.sdk.v1.domain.contact_details_base.ContactDetailsBase
-
fax_number
¶ - Fax number of the customer
Type: str
-
mobile_phone_number
¶ - International version of the mobile phone number of the customer including the leading + (i.e. +16127779311).
Type: str
-
phone_number
¶ - Phone number of the customer. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
work_phone_number
¶ - International version of the work phone number of the customer including the leading + (i.e. +31235671500)
Type: str
-
-
class
worldline.connect.sdk.v1.domain.contact_details_base.
ContactDetailsBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
email_address
¶ - Email address of the customer
Type: str
-
email_message_type
¶ - Preference for the type of email message markup
- plain-text
- html
Type: str
-
-
class
worldline.connect.sdk.v1.domain.contact_details_risk_assessment.
ContactDetailsRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
email_address
¶ - Email address of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.contact_details_token.
ContactDetailsToken
[source]¶ Bases:
worldline.connect.sdk.v1.domain.contact_details_base.ContactDetailsBase
-
class
worldline.connect.sdk.v1.domain.convert_amount.
ConvertAmount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
converted_amount
¶ - Converted amount in cents and having 2 decimal
Type: long
-
-
class
worldline.connect.sdk.v1.domain.create_dispute_request.
CreateDisputeRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - The amount of money that is to be disputed.
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
contact_person
¶ - The name of the person on your side who can be contacted regarding this dispute.
Type: str
-
email_address
¶ - The email address of the contact person.
Type: str
-
reply_to
¶ - The email address to which the reply message will be sent.
Type: str
-
request_message
¶ - The message sent from you to Worldline.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.create_hosted_checkout_request.
CreateHostedCheckoutRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_transfer_payment_method_specific_input
¶ - Object containing the specific input details for bank transfer payments
-
card_payment_method_specific_input
¶ - Object containing the specific input details for card payments
-
cash_payment_method_specific_input
¶ - Object containing the specific input details for cash payments
-
e_invoice_payment_method_specific_input
¶ - Object containing the specific input details for eInvoice payments
-
fraud_fields
¶ - Object containing additional data that will be used to assess the risk of fraud
Type:
worldline.connect.sdk.v1.domain.fraud_fields.FraudFields
-
hosted_checkout_specific_input
¶ - Object containing hosted checkout specific data
Type:
worldline.connect.sdk.v1.domain.hosted_checkout_specific_input.HostedCheckoutSpecificInput
-
merchant
¶ - Object containing information on you, the merchant
-
mobile_payment_method_specific_input
¶ - Object containing reference data for Google Pay (paymentProductId 320) and Apple Pay (paymentProductID 302).
-
order
¶ - Order object containing order related data
-
redirect_payment_method_specific_input
¶ - Object containing the specific input details for payments that involve redirects to 3rd parties to complete, like iDeal and PayPal
-
sepa_direct_debit_payment_method_specific_input
¶ - Object containing the specific input details for SEPA direct debit payments
-
-
class
worldline.connect.sdk.v1.domain.create_hosted_checkout_response.
CreateHostedCheckoutResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
hosted_checkout_id
¶ - This is the ID under which the data for this checkout can be retrieved.
Type: str
-
invalid_tokens
¶ - Tokens that are submitted in the request are validated. In case any of the tokens can’t be used anymore they are returned in this array. You should most likely remove those tokens from your system.
Type: list[str]
-
merchant_reference
¶ - If a payment is created during this hosted checkout, then it will use this merchantReference. This is the merchantReference you provided in the Create Hosted Checkout request, or if you did not provide one, a reference generated by Connect. This allows you to to link a webhook related to the created payment back to this hosted checkout using the webhook’s paymentOutput.references.merchantReference.This property is intended primarily for hosted checkouts on the Ogone Payment Platform. On the GlobalCollect platform, you can also use hostedCheckoutSpecificOutput.hostedCheckoutId.
Type: str
-
partial_redirect_url
¶ - The partial URL as generated by our system. You will need to add the protocol and the relevant subdomain to this URL, before redirecting your customer to this URL. A special ‘payment’ subdomain will always work so you can always add ‘https://payment.’ at the beginning of this response value to view your MyCheckout hosted payment pages.
Type: str
-
returnmac
¶ - When the customer is returned to your site we will append this property and value to the query-string. You should store this data, so you can identify the returning customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.create_hosted_mandate_management_request.
CreateHostedMandateManagementRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
create_mandate_info
¶ - Object containing partial information needed for the creation of the mandate. The recurrencetype, signature type of the mandate and reference to the customer are mandatory. You can also supply any personal information you already know about the customer so they have to fill in less details.
Type:
worldline.connect.sdk.v1.domain.hosted_mandate_info.HostedMandateInfo
-
hosted_mandate_management_specific_input
¶ - Object containing hosted mandate management specific data
-
-
class
worldline.connect.sdk.v1.domain.create_hosted_mandate_management_response.
CreateHostedMandateManagementResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
hosted_mandate_management_id
¶ - This is the ID under which the data for this mandate management can be retrieved.
Type: str
-
partial_redirect_url
¶ - The partial URL as generated by our system. You will need to add the protocol and the relevant subdomain to this URL, before redirecting your customer to this URL. A special ‘payment’ subdomain will always work so you can always add ‘https://payment.’ at the beginning of this response value to view your hosted mandate management pages.
Type: str
-
returnmac
¶ - When the customer is returned to your site we will append this property and value to the query-string. You should store this data, so you can identify the returning customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.create_mandate_base.
CreateMandateBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
alias
¶ - An alias for the mandate. This can be used to visually represent the mandate.Do not include any unobfuscated sensitive data in the alias.Default value if not provided is the obfuscated IBAN of the customer.
Type: str
-
customer
¶ - Customer object containing customer specific inputs
Type:
worldline.connect.sdk.v1.domain.mandate_customer.MandateCustomer
-
customer_reference
¶ - The unique identifier of a customer
Type: str
-
language
¶ - The language code of the customer, one of de, en, es, fr, it, nl, si, sk, sv.
Type: str
-
recurrence_type
¶ - Specifies whether the mandate is for one-off or recurring payments. Possible values are:
- UNIQUE
- RECURRING
Type: str
-
signature_type
¶ - Specifies whether the mandate is unsigned or singed by SMS. Possible values are:
- UNSIGNED
- SMS
Type: str
-
unique_mandate_reference
¶ - The unique identifier of the mandate. If you do not provide one, we will generate one for you.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.create_mandate_request.
CreateMandateRequest
[source]¶ Bases:
worldline.connect.sdk.v1.domain.create_mandate_with_return_url.CreateMandateWithReturnUrl
-
class
worldline.connect.sdk.v1.domain.create_mandate_response.
CreateMandateResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate
¶ - Object containing information on a mandate
Type:
worldline.connect.sdk.v1.domain.mandate_response.MandateResponse
-
merchant_action
¶ - Object that contains the action, including the needed data, that you should perform next, showing the redirect to a third party to complete the payment or like showing instructions
Type:
worldline.connect.sdk.v1.domain.mandate_merchant_action.MandateMerchantAction
-
-
class
worldline.connect.sdk.v1.domain.create_mandate_with_return_url.
CreateMandateWithReturnUrl
[source]¶ Bases:
worldline.connect.sdk.v1.domain.create_mandate_base.CreateMandateBase
-
return_url
¶ - Return URL to use if the mandate signing requires redirection.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.create_payment_product_session_request.
CreatePaymentProductSessionRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_session302_specific_input
¶ - Object containing details for creating an Apple Pay session.
-
-
class
worldline.connect.sdk.v1.domain.create_payment_product_session_response.
CreatePaymentProductSessionResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_session302_specific_output
¶ - Object containing the Apple Pay session object.
-
-
class
worldline.connect.sdk.v1.domain.create_payment_request.
CreatePaymentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_transfer_payment_method_specific_input
¶ - Object containing the specific input details for bank transfer payments
-
card_payment_method_specific_input
¶ - Object containing the specific input details for card payments
Type:
worldline.connect.sdk.v1.domain.card_payment_method_specific_input.CardPaymentMethodSpecificInput
-
cash_payment_method_specific_input
¶ - Object containing the specific input details for cash payments
Type:
worldline.connect.sdk.v1.domain.cash_payment_method_specific_input.CashPaymentMethodSpecificInput
-
direct_debit_payment_method_specific_input
¶ - Object containing the specific input details for direct debit payments
-
e_invoice_payment_method_specific_input
¶ - Object containing the specific input details for e-invoice payments.
-
encrypted_customer_input
¶ - Data that was encrypted client side containing all customer entered data elements like card data.Note: Because this data can only be submitted once to our system and contains encrypted card data you should not store it. As the data was captured within the context of a client session you also need to submit it to us before the session has expired.
Type: str
-
fraud_fields
¶ - Object containing additional data that will be used to assess the risk of fraud
Type:
worldline.connect.sdk.v1.domain.fraud_fields.FraudFields
-
invoice_payment_method_specific_input
¶ - Object containing the specific input details for invoice payments
-
merchant
¶ - Object containing information on you, the merchant
-
mobile_payment_method_specific_input
¶ - Object containing the specific input details for mobile payments.Mobile payments produce the required payment data in encrypted form.
- For Apple Pay, the encrypted payment data is the PKPayment <https://developer.apple.com/documentation/passkit/pkpayment>.token.paymentData object passed as a string (with all quotation marks escaped).
- For Google Pay, the encrypted payment data can be found in property paymentMethodData.tokenizationData.token of the PaymentData <https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentData>.toJson() result.
-
order
¶ - Order object containing order related dataPlease note that this object is required to be able to submit the amount.
-
redirect_payment_method_specific_input
¶ - Object containing the specific input details for payments that involve redirects to 3rd parties to complete, like iDeal and PayPal
-
sepa_direct_debit_payment_method_specific_input
¶ - Object containing the specific input details for SEPA direct debit payments
-
-
class
worldline.connect.sdk.v1.domain.create_payment_response.
CreatePaymentResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.create_payment_result.CreatePaymentResult
-
class
worldline.connect.sdk.v1.domain.create_payment_result.
CreatePaymentResult
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
creation_output
¶ - Object containing the details of the created payment
Type:
worldline.connect.sdk.v1.domain.payment_creation_output.PaymentCreationOutput
-
merchant_action
¶ - Object that contains the action, including the needed data, that you should perform next, like showing instruction, showing the transaction results or redirect to a third party to complete the payment
Type:
worldline.connect.sdk.v1.domain.merchant_action.MerchantAction
-
payment
¶ - Object that holds the payment related properties
-
-
class
worldline.connect.sdk.v1.domain.create_payout_request.
CreatePayoutRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
Deprecated; Moved to PayoutDetails
-
bank_account_bban
¶ - Object containing account holder name and bank account information. This property can only be used for payouts in the UK.
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
Deprecated; Moved to BankTransferPayoutMethodSpecificInput
-
bank_account_iban
¶ - Object containing account holder and IBAN information.
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
Deprecated; Moved to BankTransferPayoutMethodSpecificInput
-
bank_transfer_payout_method_specific_input
¶ - Object containing the specific input details for bank transfer payouts.
-
card_payout_method_specific_input
¶ - Object containing the specific input details for card payouts.
Type:
worldline.connect.sdk.v1.domain.card_payout_method_specific_input.CardPayoutMethodSpecificInput
-
customer
¶ - Object containing the details of the customer.
Type:
worldline.connect.sdk.v1.domain.payout_customer.PayoutCustomer
Deprecated; Moved to PayoutDetails
-
merchant
¶ - Object containing information on you, the merchant
Type:
worldline.connect.sdk.v1.domain.payout_merchant.PayoutMerchant
-
payout_date
¶ - Date of the payout sent to the bank by usFormat: YYYYMMDD
Type: str
Deprecated; Moved to BankTransferPayoutMethodSpecificInput
-
payout_details
¶ - Object containing the details for Create Payout Request
Type:
worldline.connect.sdk.v1.domain.payout_details.PayoutDetails
-
payout_text
¶ - Text to be printed on the bank account statement of the beneficiary. The maximum allowed length might differ per country. The data will be automatically truncated to the maximum allowed length.
Type: str
Deprecated; Moved to BankTransferPayoutMethodSpecificInput
-
references
¶ - Object that holds all reference properties that are linked to this transaction
Type:
worldline.connect.sdk.v1.domain.payout_references.PayoutReferences
Deprecated; Moved to PayoutDetails
-
swift_code
¶ - The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code.
Type: str
Deprecated; Moved to BankTransferPayoutMethodSpecificInput
-
-
class
worldline.connect.sdk.v1.domain.create_token_request.
CreateTokenRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card
¶ - Object containing card details
-
e_wallet
¶ - Object containing eWallet details
Type:
worldline.connect.sdk.v1.domain.token_e_wallet.TokenEWallet
-
encrypted_customer_input
¶ - Data that was encrypted client side containing all customer entered data elements like card data.Note: Because this data can only be submitted once to our system and contains encrypted card data you should not store it. As the data was captured within the context of a client session you also need to submit it to us before the session has expired.
Type: str
-
non_sepa_direct_debit
¶ - Object containing non SEPA Direct Debit details
Type:
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit.TokenNonSepaDirectDebit
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
sepa_direct_debit
¶ - Object containing SEPA Direct Debit details
-
-
class
worldline.connect.sdk.v1.domain.create_token_response.
CreateTokenResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
is_new_token
¶ - Indicates if a new token was created
- true - A new token was created
- false - A token with the same card number already exists and is returned. Please note that the existing token has not been updated. When you want to update other data then the card number, you need to use the update API call, as data is never updated during the creation of a token.
Type: bool
-
original_payment_id
¶ - The initial Payment ID of the transaction from which the token has been created
Type: str
-
token
¶ - ID of the token
Type: str
-
-
class
worldline.connect.sdk.v1.domain.created_payment_output.
CreatedPaymentOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
This object is used when a payment was created during a HostedCheckout. It is part of the response of a GET HostedCheckout object and contains the details of the created payment object.-
displayed_data
¶ - Object that contains the action, including the needed data, that you should perform next, like showing instruction, showing the transaction results or redirect to a third party to complete the payment
Type:
worldline.connect.sdk.v1.domain.displayed_data.DisplayedData
-
is_checked_remember_me
¶ - Indicates whether the customer ticked the “Remember my details for future purchases” checkbox on the MyCheckout hosted payment pages
Type: bool
-
payment
¶ - Object that holds the payment data
-
payment_creation_references
¶ - Object containing the created references
Type:
worldline.connect.sdk.v1.domain.payment_creation_references.PaymentCreationReferences
-
payment_status_category
¶ - Highlevel indication of the payment status with the following possible values:
- REJECTED - The payment has been rejected or is in such a state that it will never become successful. This category groups the following statuses:
- CREATED
- REJECTED
- REJECTED CAPTURE
- REJECTED REFUND
- REJECTED PAYOUT
- CANCELLED
- SUCCESSFUL - The payment was not (yet) rejected. Use the payment statuses to determine if it was completed, see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html>. This category groups the following statuses:
- PENDING PAYMENT
- ACCOUNT VERIFIED
- PENDING FRAUD APPROVAL
- PENDING APPROVAL
- AUTHORIZATION REQUESTED
- CAPTURE REQUESTED
- REFUND REQUESTED
- PAYOUT REQUESTED
- CAPTURED
- PAID
- ACCOUNT CREDITED
- REVERSED
- CHARGEBACK_NOTIFICATION
- CHARGEBACKED
- REFUNDED
- STATUS_UNKNOWN - The status of the payment is unknown at this moment. This category groups the following statuses:
- REDIRECTED
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
Deprecated; Use Payment.statusOutput.statusCategory instead
-
tokenization_succeeded
¶ - If the payment was attempted to be tokenized, indicates if tokenization was successful or not.
Type: bool
-
tokens
¶ - This property contains the tokens that are associated with the hosted checkout session/customer. You can use the tokens listed in this list for a future checkout of the same customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.creditor.
Creditor
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_address_info
¶ - Additional information about the creditor’s address, like Suite II, Apartment 2a
Type: str
-
city
¶ - City of the creditor address
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
house_number
¶ - House number of the creditor address
Type: str
-
iban
¶ - Creditor IBAN numberThe IBAN is the International Bank Account Number. It is an internationally agreed format for the bank account number and includes the ISO country code and two check digits.
Type: str
-
id
¶ - Creditor identifier
Type: str
-
name
¶ - Name of the collecting creditor
Type: str
-
reference_party
¶ - Creditor type of the legal reference of the collecting entity
Type: str
-
reference_party_id
¶ - Legal reference of the collecting creditor
Type: str
-
street
¶ - Street of the creditor address
Type: str
-
zip
¶ - ZIP code of the creditor address
Type: str
-
-
class
worldline.connect.sdk.v1.domain.customer.
Customer
[source]¶ Bases:
worldline.connect.sdk.v1.domain.customer_base.CustomerBase
Object containing data related to the customer-
account
¶ - Object containing data related to the account the customer has with you
Type:
worldline.connect.sdk.v1.domain.customer_account.CustomerAccount
-
account_type
¶ - Type of the customer account that is used to place this order. Can have one of the following values:
- none - The account that was used to place the order with is a guest account or no account was used at all
- created - The customer account was created during this transaction
- existing - The customer account was an already existing account prior to this transaction
Type: str
-
billing_address
¶ - Object containing billing address details
-
contact_details
¶ - Object containing contact details like email address and phone number
Type:
worldline.connect.sdk.v1.domain.contact_details.ContactDetails
-
device
¶ - Object containing information on the device and browser of the customer
Type:
worldline.connect.sdk.v1.domain.customer_device.CustomerDevice
-
fiscal_number
¶ - The fiscal registration number of the customer or the tax registration number of the company in case of a business customer. Please find below specifics per country:
- Argentina - Consumer (DNI) with a length of 7 or 8 digits
- Argentina - Company (CUIT) with a length of 11 digits
- Brazil - Consumer (CPF) with a length of 11 digits
- Brazil - Company (CNPJ) with a length of 14 digits
- Chile - Consumer (RUT) with a length of 9 digits
- Colombia - Consumer (NIT) with a length of 8, 9 or 10 digits
- Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
- Dominican Republic - Consumer (RNC) with a length of 11 digits
- Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU)) with a length of 11 characters
- India - Consumer (PAN) with a length of 10 characters
- Mexico - Consumer (RFC) with a length of 13 digits
- Mexico - Company (RFC) with a length of 12 digits
- Norway - Consumer (fødselsnummer) with a length of 11 digits
- Peru - Consumer (RUC) with a length of 11 digits
- Sweden - Consumer (personnummer) with a length of 10 or 12 digits
- Uruguay - Consumer (CI) with a length of 8 digits
- Uruguay - Consumer (NIE) with a length of 9 digits
- Uruguay - Company (RUT) with a length of 12 digits
Type: str
-
is_company
¶ - Indicates if the payer is a company or an individual
- true = This is a company
- false = This is an individual
Type: bool
-
is_previous_customer
¶ - Specifies if the customer has a history of online shopping with the merchant
- true - The customer is a known returning customer
- false - The customer is new/unknown customer
Type: bool
-
locale
¶ - The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
Type: str
-
personal_information
¶ - Object containing personal information like name, date of birth and gender.
Type:
worldline.connect.sdk.v1.domain.personal_information.PersonalInformation
-
shipping_address
¶ - Object containing shipping address details
Type:
worldline.connect.sdk.v1.domain.address_personal.AddressPersonal
Deprecated; Use Order.shipping.address instead
-
-
class
worldline.connect.sdk.v1.domain.customer_account.
CustomerAccount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data related to the account the customer has with you-
authentication
¶ - Object containing data on the authentication used by the customer to access their account
Type:
worldline.connect.sdk.v1.domain.customer_account_authentication.CustomerAccountAuthentication
-
change_date
¶ - The last date (YYYYMMDD) on which the customer made changes to their account with you. These are changes to billing & shipping address details, new payment account (tokens), or new users(s) added.
Type: str
-
changed_during_checkout
¶ - true = the customer made changes to their account during this checkoutfalse = the customer didn’t change anything to their account during this checkout/nThe changes ment here are changes to billing & shipping address details, new payment account (tokens), or new users(s) added.
Type: bool
-
create_date
¶ - The date (YYYYMMDD) on which the customer created their account with you
Type: str
-
had_suspicious_activity
¶ - Specifies if you have experienced suspicious activity on the account of the customertrue = you have experienced suspicious activity (including previous fraud) on the customer account used for this transactionfalse = you have experienced no suspicious activity (including previous fraud) on the customer account used for this transaction
Type: bool
-
has_forgotten_password
¶ - Specifies if the customer (initially) had forgotten their password
- true - The customer has forgotten their password
- false - The customer has not forgotten their password
Type: bool
-
has_password
¶ - Specifies if the customer entered a password to gain access to an account registered with the you
- true - The customer has used a password to gain access
- false - The customer has not used a password to gain access
Type: bool
-
password_change_date
¶ - The last date (YYYYMMDD) on which the customer changed their password for the account used in this transaction
Type: str
-
password_changed_during_checkout
¶ - Indicates if the password of an account is changed during this checkouttrue = the customer made changes to their password of the account used during this checkoutalse = the customer didn’t change anything to their password of the account used during this checkout
Type: bool
-
payment_account_on_file
¶ - Object containing information on the payment account data on file (tokens)
Type:
worldline.connect.sdk.v1.domain.payment_account_on_file.PaymentAccountOnFile
-
payment_account_on_file_type
¶ - Indicates the type of account. For example, for a multi-account card product.
- not-applicable = the card used doesn’t support multiple card products
- credit = the card used is a credit card
- debit = the card used is a debit card
Type: str
-
payment_activity
¶ - Object containing data on the purchase history of the customer with you
Type:
worldline.connect.sdk.v1.domain.customer_payment_activity.CustomerPaymentActivity
-
-
class
worldline.connect.sdk.v1.domain.customer_account_authentication.
CustomerAccountAuthentication
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data on the authentication used by the customer to access their account-
data
¶ - Data that documents and supports a specific authentication process submitted using the order.customer.account.authentication.method property. The data submitted using this property will be used by the issuer to validate the used authentication method.For example, if the order.customer.account.authentication.method is:
- federated-id, then this element can carry information about the provider of the federated ID and related information.
- fido-authentication, then this element can carry the FIDO attestation data (including the signature).
- fido-authentication-with-signed-assurance-data, then this element can carry FIDO Attestation data with the FIDO assurance data signed.
- src-assurance-data, then this element can carry the SRC assurance data
Type: str
-
method
¶ - Authentication used by the customer on your website or appPossible values :
- guest = no login occurred, customer is ‘logged in’ as guest
- merchant-credentials = the customer logged in using credentials that are specific to you
- federated-id = the customer logged in using a federated ID
- issuer-credentials = the customer logged in using credentials from the card issuer (of the card used in this transaction)
- third-party-authentication = the customer logged in using third-party authentication
- fido-authentication = the customer logged in using a FIDO authenticator
- fido-authentication-with-signed-assurance-data = the customer logged in using a FIDO authenticator which also provides signed assurance data
- src-assurance-data = the customer authenticated themselves during a Secure Remote Commerce session
Type: str
-
utc_timestamp
¶ - Timestamp (YYYYMMDDHHmm) of the authentication of the customer to their account with you
Type: str
-
-
class
worldline.connect.sdk.v1.domain.customer_account_risk_assessment.
CustomerAccountRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data related to the account the customer has with you-
has_forgotten_password
¶ - Specifies if the customer (initially) had forgotten their password
- true - The customer has forgotten their password
- false - The customer has not forgotten their password
Type: bool
-
has_password
¶ - Specifies if the customer entered a password to gain access to an account registered with the you
- true - The customer has used a password to gain access
- false - The customer has not used a password to gain access
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.customer_approve_payment.
CustomerApprovePayment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
account_type
¶ - Type of the customer account that is used to place this order. Can have one of the following values:
- none - The account that was used to place the order is a guest account or no account was used at all
- created - The customer account was created during this transaction
- existing - The customer account was an already existing account prior to this transaction
Type: str
-
-
class
worldline.connect.sdk.v1.domain.customer_base.
CustomerBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Basic information of a customer-
company_information
¶ - Object containing company information
Type:
worldline.connect.sdk.v1.domain.company_information.CompanyInformation
-
merchant_customer_id
¶ - Your identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
Type: str
-
vat_number
¶ - Local VAT number of the company
Type: str
Deprecated; Use companyInformation.vatNumber instead
-
-
class
worldline.connect.sdk.v1.domain.customer_device.
CustomerDevice
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information on the device and browser of the customer-
accept_header
¶ - The accept-header of the customer client from the HTTP Headers.
Type: str
-
browser_data
¶ - Object containing information regarding the browser of the customer
Type:
worldline.connect.sdk.v1.domain.browser_data.BrowserData
-
default_form_fill
¶ - Degree of default form fill, with the following possible values:
- automatically - All fields filled automatically
- automatically-but-modified - All fields filled automatically, but some fields were modified manually
- manually - All fields were entered manually
Type: str
-
device_fingerprint_transaction_id
¶ - One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint
Type: str
-
ip_address
¶ - The IP address of the customer client from the HTTP Headers.
Type: str
-
locale
¶ - Locale of the client device/browser. Returned in the browser from the navigator.language property.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.
Type: str
-
timezone_offset_utc_minutes
¶ - Offset in minutes of timezone of the client versus the UTC. Value is returned by the JavaScript getTimezoneOffset() Method.If you use the latest version of our JavaScript Client SDK, we will collect this data and include it in the encryptedCustomerInput property. We will then automatically populate this data if available.
Type: str
-
user_agent
¶ - User-Agent of the client device/browser from the HTTP Headers.As a fall-back we will use the userAgent that might be included in the encryptedCustomerInput, but this is captured client side using JavaScript and might be different.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.customer_device_risk_assessment.
CustomerDeviceRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information on the device and browser of the customer-
default_form_fill
¶ - Degree of default form fill, with the following possible values:
- automatically - All fields filled automatically
- automatically-but-modified - All fields filled automatically, but some fields were modified manually
- manually - All fields were entered manually
Type: str
-
device_fingerprint_transaction_id
¶ - One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint
Type: str
-
-
class
worldline.connect.sdk.v1.domain.customer_payment_activity.
CustomerPaymentActivity
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data on the purchase history of the customer with you-
number_of_payment_attempts_last24_hours
¶ - Number of payment attempts (so including unsuccessful ones) made by this customer with you in the last 24 hours
Type: int
-
number_of_payment_attempts_last_year
¶ - Number of payment attempts (so including unsuccessful ones) made by this customer with you in the last 12 months
Type: int
-
number_of_purchases_last6_months
¶ - Number of successful purchases made by this customer with you in the last 6 months
Type: int
-
-
class
worldline.connect.sdk.v1.domain.customer_risk_assessment.
CustomerRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data related to the customer-
account
¶ - Object containing data related to the account the customer has with you
Type:
worldline.connect.sdk.v1.domain.customer_account_risk_assessment.CustomerAccountRiskAssessment
-
account_type
¶ - Type of the customer account that is used to place this order. Can have one of the following values:
- none - The account that was used to place the order is a guest account or no account was used at all
- created - The customer account was created during this transaction
- existing - The customer account was an already existing account prior to this transaction
Type: str
-
billing_address
¶ - Object containing billing address details
-
contact_details
¶ - Object containing contact details like email address
Type:
worldline.connect.sdk.v1.domain.contact_details_risk_assessment.ContactDetailsRiskAssessment
-
device
¶ - Object containing information on the device and browser of the customer
Type:
worldline.connect.sdk.v1.domain.customer_device_risk_assessment.CustomerDeviceRiskAssessment
-
is_previous_customer
¶ - Specifies if the customer has a history of online shopping with the merchant
- true - The customer is a known returning customer
- false - The customer is new/unknown customer
Type: bool
-
locale
¶ - The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
Type: str
-
personal_information
¶ - Object containing personal information like name, date of birth and gender
-
shipping_address
¶ - Object containing shipping address details
Type:
worldline.connect.sdk.v1.domain.address_personal.AddressPersonal
Deprecated; Use Order.shipping.address instead
-
-
class
worldline.connect.sdk.v1.domain.customer_token.
CustomerToken
[source]¶ Bases:
worldline.connect.sdk.v1.domain.customer_base.CustomerBase
-
billing_address
¶ - Object containing the billing address details
-
personal_information
¶ - Object containing personal information of the customer
Type:
worldline.connect.sdk.v1.domain.personal_information_token.PersonalInformationToken
-
-
class
worldline.connect.sdk.v1.domain.customer_token_with_contact_details.
CustomerTokenWithContactDetails
[source]¶ Bases:
worldline.connect.sdk.v1.domain.customer_token.CustomerToken
-
contact_details
¶ - Object containing contact details like email address and phone number
Type:
worldline.connect.sdk.v1.domain.contact_details_token.ContactDetailsToken
-
-
class
worldline.connect.sdk.v1.domain.debtor.
Debtor
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
This object describes the the consumer (or company) that will be debited and it is part of a SEPA Direct Debit Mandate-
additional_address_info
¶ - Additional information about the debtor’s address, like Suite II, Apartment 2a
Type: str
-
city
¶ - City of the debtor’s address
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code of the debtor’s address
Type: str
-
first_name
¶ - Debtor first name
Type: str
-
house_number
¶ - House number of the debtor’s address
Type: str
-
state
¶ - State of debtor address
Type: str
-
state_code
¶ - ISO 3166-2 alpha-3 state codeNotes:
- The maximum length for 3-D Secure version 2 is AN3.
- The maximum length for paymentProductId 1503 (Boleto) is AN2.
Type: str
-
street
¶ - Street of debtor’s address
Type: str
-
surname
¶ - Debtor’s last name
Type: str
-
surname_prefix
¶ - Prefix of the debtor’s last name
Type: str
-
zip
¶ - ZIP code of the debtor’s address
Type: str
-
-
class
worldline.connect.sdk.v1.domain.decrypted_payment_data.
DecryptedPaymentData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
auth_method
¶ - The type of payment credential which the customer used.
- For Google Pay, maps to the paymentMethodDetails.authMethod property in the encrypted payment data.
.Type: str
Deprecated; Use decryptedPaymentData.paymentMethod instead
-
cardholder_name
¶ - The card holder’s name on the card. Minimum length of 2, maximum length of 51 characters.
- For Apple Pay, maps to the cardholderName property in the encrypted payment data.
- For Google Pay this is not available in the encrypted payment data, and can be omitted.
Type: str
-
cryptogram
¶ - The 3D secure online payment cryptogram.
- For Apple Pay, maps to the paymentData.onlinePaymentCryptogram property in the encrypted payment data.
- For Google Pay, maps to the paymentMethodDetails.cryptogram property in the encrypted payment data.
Not allowed for Google Pay if the authMethod in the response of Google is PAN_ONLY.Type: str
-
dpan
¶ - The device specific PAN.
- For Apple Pay, maps to the applicationPrimaryAccountNumber property in the encrypted payment data.
- For Google Pay, maps to the paymentMethodDetails.dpan property in the encrypted payment data.
Not allowed for Google Pay if the authMethod in the response of Google is PAN_ONLY.Type: str
-
eci
¶ - The eci is Electronic Commerce Indicator.
- For Apple Pay, maps to the paymentData.eciIndicator property in the encrypted payment data.
- For Google Pay, maps to the paymentMethodDetails.eciIndicator property in the encrypted payment data.
Type: int
-
expiry_date
¶ - Expiry date of the cardFormat: MMYY.
- For Apple Pay, maps to the applicationExpirationDate property in the encrypted payment data. This property is formatted as YYMMDD, so this needs to be converted to get a correctly formatted expiry date.
- For Google Pay, maps to the paymentMethodDetails.expirationMonth and paymentMethodDetails.expirationYear properties in the encrypted payment data. These need to be combined to get a correctly formatted expiry date.
Type: str
-
pan
¶ - The non-device specific complete credit/debit card number (also know as the PAN).
- For Apple Pay this is not available in the encrypted payment data, and must be omitted.
- For Google Pay, maps to the paymentMethodDetails.pan property in the encrypted payment data.
Not allowed for Google Pay if the authMethod in the response of Google is CRYPTOGRAM_3DS.Type: str
-
payment_method
¶ - In case Google provides in the response as authMethod: CRYPTOGRAM_3DS send in as value of this property TOKENIZED_CARD.
- In case Google provides in the response as authMethod: PAN_ONLY send in as value of this property CARD.
For Apple Pay this is not available in the encrypted payment data, and must be omitted.Type: str
-
-
class
worldline.connect.sdk.v1.domain.device_fingerprint_details.
DeviceFingerprintDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_id
¶ - The ID of the payment that is linked to the Device Fingerprint data.
Type: str
-
raw_device_fingerprint_output
¶ - The detailed data that was collected during the Device Fingerprint collection. The structure will be different depending on the collection method and device fingerprint partner used. Please contact us if you want more information on the details that are returned in this string.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.device_fingerprint_request.
DeviceFingerprintRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
collector_callback
¶ - You can supply a JavaScript function call that will be called after the device fingerprint data collecting using the provided JavaScript snippet is finished. This will then be added to the snippet that is returned in the property html.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.device_fingerprint_response.
DeviceFingerprintResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
device_fingerprint_transaction_id
¶ - Contains the unique id which is used by the device fingerprint collector script. This must be used to set the property fraudFields.deviceFingerprintTransactionId in either in the CreatePayment.order.customer.device.deviceFingerprintTransactionId, the CreateRiskAssessmentCards.order.customer.device.deviceFingerprintTransactionId or the CreateRiskAssessmentBankaccounts.order.customer.device.deviceFingerprintTransactionId.
Type: str
-
html
¶ - Contains the ready-to-use device fingerprint collector script. You have to inject it into your page and call it when the customer presses the final payment submit button. You should only call it once per payment request.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.device_render_options.
DeviceRenderOptions
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing rendering options of the device-
sdk_interface
¶ - Lists all of the SDK Interface types that the device supports for displaying specific challenge user interfaces within the SDK.
- native = The app supports only a native user interface
- html = The app supports only an HTML user interface
- both = Both Native and HTML user interfaces are supported by the app
Type: str
-
sdk_ui_type
¶ - Lists all UI types that the device supports for displaying specific challenge user interfaces within the SDK.
- text = Text interface
- single-select = Select a single option
- multi-select = Select multiple options
- oob = Out of ounds
- html-other = HTML Other (only valid when cardPaymentMethodSpecificInput.threeDSecure.sdkData.deviceRenderOptions.sdkInterface is set to html)
Type: str
Deprecated; Use deviceRenderOptions.sdkUiTypes instead
-
sdk_ui_types
¶ - Lists all UI types that the device supports for displaying specific challenge user interfaces within the SDK.
- text = Text interface
- single-select = Select a single option
- multi-select = Select multiple options
- oob = Out of ounds
- html-other = HTML Other (only valid when cardPaymentMethodSpecificInput.threeDSecure.sdkData.deviceRenderOptions.sdkInterface is set to html)
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.directory.
Directory
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
entries
¶ - List of entries in the directory
Type: list[
worldline.connect.sdk.v1.domain.directory_entry.DirectoryEntry
]
-
-
class
worldline.connect.sdk.v1.domain.directory_entry.
DirectoryEntry
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
country_names
¶ - Country name of the issuer, used to group issuers per countryNote: this is only filled if supported by the payment product.
Type: list[str]
-
issuer_id
¶ - Unique ID of the issuing bank of the customer
Type: str
-
issuer_list
¶ - To be used to sort the issuers.
- short - These issuers should be presented at the top of the list
- long - These issuers should be presented after the issuers marked as short
Note: this is only filled if supported by the payment product. Currently only iDeal (809) support this. Sorting within the groups should be done alphabetically.Type: str
-
issuer_name
¶ - Name of the issuing bank, as it should be presented to the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.displayed_data.
DisplayedData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
displayed_data_type
¶ - Action merchants needs to take in the online payment process. Possible values are:
- SHOW_INSTRUCTIONS - The customer needs to be shown payment instruction using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
- SHOW_TRANSACTION_RESULTS - The customer needs to be shown the transaction results using the details found in showData. Alternatively the instructions can be rendered by us using the renderingData
Type: str
-
rendering_data
¶ - This property contains the blob with data for the instructions rendering service.This service will be available at the following endpoint:http(s)://{{merchant specific subdomain}}.{{base MyCheckout hosted payment pages domain}}/instructions/{{merchantId}}/{{clientSessionId}}This instructions page rendering service accepts the following parameters:
- instructionsRenderingData (required, the content of this property)
- locale (optional, if present overrides default locale, e.g. “en_GB”)
- variant (optional, code of a variant, if present overrides default variant, e.g. “100”)
- customerId (required for Pix, otherwise optional, the customerId from a client session)
You can offer a link to a customer to see an instructions page for a payment done earlier. Because of the size of the instructionsRenderingData this will need to be set in a web form as a value of a hidden field. Before presenting the link you need to obtain a clientSessionId by creating a session using the S2S API. You will need to use the MyCheckout hosted payment pages domain hosted in the same region as the API domain used for the createClientSession call.The instructionsRenderingData is a String blob that is presented to you via the Server API as part of the merchantAction (if available, and non-redirect) in the JSON return values for the createPayment call or the getHostedCheckoutStatus call (merchantAction inside createdPaymentOutput when available).You are responsible to store the instructionsRenderingData blob in order to be able to present the instructions page at a later time, when this information might no longer be available through Server API calls.Type: str
-
show_data
¶ - Array of key value pairs of data that needs to be shown to the customer. This is returned for both the SHOW_INSTRUCTION as well as the SHOW_TRANSACTION_RESULTS actionType.Note: The returned value for the key BARCODE is a base64 encoded gif image. By prepending ‘data:image/gif;base64,’ this value can be used as the source of an HTML inline image.
Type: list[
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
]
-
-
class
worldline.connect.sdk.v1.domain.dispute.
Dispute
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
dispute_output
¶ - This property contains the creationDetails and default information regarding a dispute.
Type:
worldline.connect.sdk.v1.domain.dispute_output.DisputeOutput
-
id
¶ - Dispute ID for a given merchant.
Type: str
-
payment_id
¶ - The ID of the payment that is being disputed.
Type: str
-
status
¶ - Current dispute status.
Type: str
-
status_output
¶ - This property contains the output for a dispute regarding the status of the dispute.
Type:
worldline.connect.sdk.v1.domain.dispute_status_output.DisputeStatusOutput
-
-
class
worldline.connect.sdk.v1.domain.dispute_creation_detail.
DisputeCreationDetail
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
dispute_creation_date
¶ - The date and time of creation of this dispute, in yyyyMMddHHmmss format.
Type: str
-
dispute_originator
¶ - The originator of this dispute, which is either Worldline or you as our client.
Type: str
-
user_name
¶ - The user account name of the dispute creator.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.dispute_output.
DisputeOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
contact_person
¶ - The name of the person on your side who can be contacted regarding this dispute.
Type: str
-
creation_details
¶ - Object containing various details related to this dispute’s creation.
Type:
worldline.connect.sdk.v1.domain.dispute_creation_detail.DisputeCreationDetail
-
email_address
¶ - The email address of the contact person.
Type: str
-
files
¶ - An array containing all files related to this dispute.
Type: list[
worldline.connect.sdk.v1.domain.hosted_file.HostedFile
]
-
reference
¶ - A collection of reference information related to this dispute.
Type:
worldline.connect.sdk.v1.domain.dispute_reference.DisputeReference
-
reply_to
¶ - The email address to which the reply message will be sent.
Type: str
-
request_message
¶ - The message sent from you to Worldline.
Type: str
-
response_message
¶ - The return message sent from the GlobalCollect platform to you.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.dispute_reference.
DisputeReference
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
merchant_order_id
¶ - The merchant’s order ID of the transaction to which this dispute is linked.
Type: str
-
merchant_reference
¶ - Your (unique) reference for the transaction that you can use to reconcile our report files.
Type: str
-
payment_reference
¶ - Payment Reference generated by WebCollect.
Type: str
-
provider_id
¶ - The numerical identifier of the Service Provider (Acquirer).
Type: str
-
provider_reference
¶ - The Service Provider’s reference.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.dispute_status_output.
DisputeStatusOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
is_cancellable
¶ - Flag indicating if the payment can be cancelled
- true
- false
Type: bool
-
status_category
¶ - Highlevel status of the payment, payout or refund with the following possible values:
- CREATED - The transaction has been created. This is the initial state once a new payment, payout or refund is created. This category groups the following statuses:
- CREATED
- PENDING_PAYMENT: The payment is waiting on customer action. This category groups the following statuses:
- PENDING_PAYMENT
- REDIRECTED
- ACCOUNT_VERIFIED: The account has been verified. This category groups the following statuses:
- ACCOUNT_VERIFIED
- PENDING_MERCHANT: The transaction is awaiting approval to proceed with the payment, payout or refund. This category groups the following statuses:
- PENDING_APPROVAL
- PENDING_COMPLETION
- PENDING_CAPTURE
- PENDING_FRAUD_APPROVAL
- PENDING_CONNECT_OR_3RD_PARTY: The transaction is in the queue to be processed. This category groups the following statuses:
- AUTHORIZATION_REQUESTED
- CAPTURE_REQUESTED
- PAYOUT_REQUESTED
- REFUND_REQUESTED
- COMPLETED: The transaction has completed. This category groups the following statuses:
- CAPTURED
- PAID
- ACCOUNT_CREDITED
- CHARGEBACK_NOTIFICATION
- REVERSED: The transaction has been reversed. This category groups the following statuses:
- CHARGEBACKED
- REVERSED
- REFUNDED: The transaction has been refunded. This category groups the following statuses:
- REFUNDED
- UNSUCCESSFUL: The transaction has been rejected or is in such a state that it will never become successful. This category groups the following statuses:
- CANCELLED
- REJECTED
- REJECTED_CAPTURE
- REJECTED_CREDIT
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_code
¶ - Numeric status code of the legacy API. It is returned to ease the migration from the legacy APIs to Worldline Connect. You should not write new business logic based on this property as it will be deprecated in a future version of the API. The value can also be found in the GlobalCollect Payment Console, in the Ogone BackOffice and in report files.
Type: int
-
status_code_change_date_time
¶ - Date and time of paymentFormat: YYYYMMDDHH24MISS
Type: str
-
-
class
worldline.connect.sdk.v1.domain.disputes_response.
DisputesResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
disputes
¶ - Array containing disputes and their characteristics.
Type: list[
worldline.connect.sdk.v1.domain.dispute.Dispute
]
-
-
class
worldline.connect.sdk.v1.domain.e_invoice_payment_method_specific_input.
EInvoicePaymentMethodSpecificInput
[source]¶ -
-
accepted_terms_and_conditions
¶ - Indicates that the customer has read and accepted the terms and conditions of the product before proceeding with the payment. This must be done before the payment can continue. An URL to the terms and conditions can be retrieved with Get payment product <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/get.html>.
Type: bool
-
payment_product9000_specific_input
¶ - Object that holds the specific data for AfterPay Installments (payment product 9000).
-
-
class
worldline.connect.sdk.v1.domain.e_invoice_payment_method_specific_input_base.
EInvoicePaymentMethodSpecificInputBase
[source]¶
-
class
worldline.connect.sdk.v1.domain.e_invoice_payment_method_specific_output.
EInvoicePaymentMethodSpecificOutput
[source]¶ -
E-invoice payment specific response data
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
payment_product9000_specific_output
¶ - AfterPay Installments (payment product 9000) specific details
-
-
class
worldline.connect.sdk.v1.domain.e_invoice_payment_product9000_specific_input.
EInvoicePaymentProduct9000SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_iban
¶ - Object containing the bank account details of the customer.
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
installment_id
¶ - The ID of the installment plan selected by the customer. Installment plans can be retrieved with Get payment product <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/get.html>.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.e_invoice_payment_product9000_specific_output.
EInvoicePaymentProduct9000SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
installment_id
¶ - The ID of the installment plan used for the payment.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.empty_validator.
EmptyValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
A validator object that contains no additional properties.
-
class
worldline.connect.sdk.v1.domain.error_response.
ErrorResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
error_id
¶ - Unique reference, for debugging purposes, of this error response
Type: str
-
errors
¶ - List of one or more errors
Type: list[
worldline.connect.sdk.v1.domain.api_error.APIError
]
-
-
class
worldline.connect.sdk.v1.domain.exemption_output.
ExemptionOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing exemption output-
exemption_raised
¶ - Type of strong customer authentication (SCA) exemption that was raised towards the acquirer for this transaction.
Type: str
-
exemption_rejection_reason
¶ - The request exemption could not be granted. The reason why is returned in this property.
Type: str
-
exemption_request
¶ - Type of strong customer authentication (SCA) exemption requested by you for this transaction.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.external_cardholder_authentication_data.
ExternalCardholderAuthenticationData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing 3D secure details.-
acs_transaction_id
¶ - Identifier of the authenticated transaction at the ACS/Issuer.
Type: str
-
applied_exemption
¶ - Exemption code from Carte Bancaire (130) (unknown possible values so far -free format).
Type: str
-
cavv
¶ - The CAVV (cardholder authentication verification value) or AAV (accountholder authentication value) provides an authentication validation value.
Type: str
-
cavv_algorithm
¶ - The algorithm, from your 3D Secure provider, used to generate the authentication CAVV.
Type: str
-
directory_server_transaction_id
¶ - The 3-D Secure Directory Server transaction ID that is used for the 3D Authentication
Type: str
-
eci
¶ - Electronic Commerce Indicator provides authentication validation results returned after AUTHENTICATIONVALIDATION
- 0 = No authentication, Internet (no liability shift, not a 3D Secure transaction)
- 1 = Authentication attempted (MasterCard)
- 2 = Successful authentication (MasterCard)
- 5 = Successful authentication (Visa, Diners Club, Amex)
- 6 = Authentication attempted (Visa, Diners Club, Amex)
- 7 = No authentication, Internet (no liability shift, not a 3D Secure transaction)
- (empty) = Not checked or not enrolled
Type: int
-
scheme_risk_score
¶ - Global score calculated by the Carte Bancaire (130) Scoring platform. Possible values from 0 to 99.
Type: int
-
three_d_secure_version
¶ - The 3-D Secure version used for the authentication. Possible values:
- v1
- v2
- 1.0.2
- 2.1.0
- 2.2.0
Type: str
-
three_d_server_transaction_id
¶ - The 3-D Secure Server transaction ID that is used for the 3-D Secure version 2 Authentication.
Type: str
Deprecated; No replacement
-
validation_result
¶ - The 3D Secure authentication result from your 3D Secure provider.
Type: str
-
xid
¶ - The transaction ID that is used for the 3D Authentication
Type: str
-
-
class
worldline.connect.sdk.v1.domain.find_payments_response.
FindPaymentsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
limit
¶ - The limit you used in the request.
Type: int
-
offset
¶ - The offset you used in the request.
Type: int
-
payments
¶ - A list of payments that matched your filter, starting at the given offset and limited to the given limit.
Type: list[
worldline.connect.sdk.v1.domain.payment.Payment
]
-
total_count
¶ - The total number of payments that matched your filter.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.find_payouts_response.
FindPayoutsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
limit
¶ - The limit you used in the request.
Type: int
-
offset
¶ - The offset you used in the request.
Type: int
-
payouts
¶ - A list of payouts that matched your filter, starting at the given offset and limited to the given limit.
Type: list[
worldline.connect.sdk.v1.domain.payout_result.PayoutResult
]
-
total_count
¶ - The total number of payouts that matched your filter.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.find_refunds_response.
FindRefundsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
limit
¶ - The limit you used in the request.
Type: int
-
offset
¶ - The offset you used in the request.
Type: int
-
refunds
¶ - A list of refunds that matched your filter, starting at the given offset and limited to the given limit.
Type: list[
worldline.connect.sdk.v1.domain.refund_result.RefundResult
]
-
total_count
¶ - The total number of refunds that matched your filter.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.fixed_list_validator.
FixedListValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
allowed_values
¶ - List of the allowed values that the field will be validated against
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.fraud_fields.
FraudFields
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
addresses_are_identical
¶ - Indicates that invoice and shipping addresses are equal.
Type: bool
Deprecated; For risk assessments there is no replacement. For other calls, use Order.shipping.addressIndicator instead
-
black_list_data
¶ - Additional black list input
Type: str
-
card_owner_address
¶ - The address that belongs to the owner of the card
Type:
worldline.connect.sdk.v1.domain.address.Address
Deprecated; This should be the same as Order.customer.billingAddress
-
customer_ip_address
¶ - The IP Address of the customer that is making the payment. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
default_form_fill
¶ - Degree of default form fill, with the following possible values:
- automatically - All fields filled automatically
- automatically-but-modified - All fields filled automatically, but some fields were modified manually
- manually - All fields were entered manually
Type: str
Deprecated; Use Order.customer.device.defaultFormFill instead
-
device_fingerprint_activated
¶ - Indicates that the device fingerprint has been used while processing the order.
Type: bool
Deprecated; No replacement
-
device_fingerprint_transaction_id
¶ - One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint
Type: str
Deprecated; Use Order.customer.device.deviceFingerprintTransactionId instead
-
gift_card_type
¶ - One of the following gift card types:
- celebrate-fall - Celebrate Fall
- grandparents-day - Grandparent’s Day
- independence-day - Independence Day
- anniversary - Anniversary
- birthday - Birthday
- congratulations - Congratulations
- april-fools-day - April Fool’s Day
- easter - Easter
- fathers-day - Father’s Day
- graduation - Graduation
- holiday - Holiday
- seasons-greetings - Season’s Greetings
- passover - Passover
- kwanzaa - Kwanzaa
- halloween - Halloween
- mothers-day - Mother’s Day
- new-years-day - New Year’s Day
- bosses-day - Bosses’ Day
- st-patricks-day - St. Patrick’s Day
- sweetest-day - Sweetest Day
- christmas - Christmas
- baby-shower - Baby Shower
- thanksgiving - Thanksgiving
- other - Other
- valentines-day - Valentine’s Day
- wedding - Wedding
- secretarys-day - Secretary’s Day
- chinese-new-year - Chinese New Year
- hanukkah - Hanukkah
Type: str
-
gift_message
¶ - Gift message
Type: str
-
has_forgotten_pwd
¶ - Specifies if the customer (initially) had forgotten their password
- true - The customer has forgotten their password
- false - The customer has not forgotten their password
Type: bool
Deprecated; Use Order.customer.account.hasForgottenPassword instead
-
has_password
¶ - Specifies if the customer entered a password to gain access to an account registered with the you
- true - The customer has used a password to gain access
- false - The customer has not used a password to gain access
Type: bool
Deprecated; Use Order.customer.account.hasPassword instead
-
is_previous_customer
¶ - Specifies if the customer has a history of online shopping with the merchant
- true - The customer is a known returning customer
- false - The customer is new/unknown customer
Type: bool
Deprecated; Use Order.customer.isPreviousCustomer instead
-
order_timezone
¶ - Timezone in which the order was placed. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
ship_comments
¶ - Comments included during shipping
Type: str
Deprecated; Use Order.shipping.comments instead
-
shipment_tracking_number
¶ - Shipment tracking number
Type: str
Deprecated; Use Order.shipping.trackingNumber instead
-
shipping_details
¶ - Details on how the order is shipped to the customer
Type:
worldline.connect.sdk.v1.domain.fraud_fields_shipping_details.FraudFieldsShippingDetails
Deprecated; No replacement
-
user_data
¶ - Array of up to 16 userData properties, each with a max length of 256 characters, that can be used for fraudscreening
Type: list[str]
-
website
¶ - The website from which the purchase was made
Type: str
Deprecated; Use Merchant.websiteUrl instead
-
-
class
worldline.connect.sdk.v1.domain.fraud_fields_shipping_details.
FraudFieldsShippingDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Deprecated; No replacement
-
method_details
¶ - Details regarding the shipping method
Type: str
Deprecated; No replacement
-
method_speed
¶ - Shipping method speed indicator
Type: int
Deprecated; No replacement
-
method_type
¶ - Shipping method type indicator
Type: int
Deprecated; No replacement
-
-
class
worldline.connect.sdk.v1.domain.fraud_results.
FraudResults
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fraud_service_result
¶ - Results from the fraud prevention check. Possible values are:
- accepted - Based on the checks performed the transaction can be accepted
- challenged - Based on the checks performed the transaction should be manually reviewed
- denied - Based on the checks performed the transaction should be rejected
- no-advice - No fraud check was requested/performed
- error - The fraud check resulted in an error and the fraud check was thus not performed
Type: str
-
in_auth
¶ - Object containing device fingerprinting details from InAuth
-
microsoft_fraud_protection
¶ - This object contains the results of Microsoft Fraud Protection risk assessment. Microsoft collects transaction data points and uses Adaptive AI that continuously learns to protect you against payment fraud, and the device fingerprinting details from the Microsoft Device Fingerprinting service.
Type:
worldline.connect.sdk.v1.domain.microsoft_fraud_results.MicrosoftFraudResults
-
-
class
worldline.connect.sdk.v1.domain.fraud_results_retail_decisions.
FraudResultsRetailDecisions
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fraud_code
¶ - Result of the fraud service.Provides additional information about the fraud result
Type: str
-
fraud_neural
¶ - Returns the raw score of the neural
Type: str
-
fraud_rcf
¶ - Result of the fraud serviceRepresent sets of fraud rules returned during the evaluation of the transaction
Type: str
-
-
class
worldline.connect.sdk.v1.domain.fraugster_results.
FraugsterResults
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fraud_investigation_points
¶ - Result of the Fraugster checkContains the investigation points used during the evaluation
Type: str
-
fraud_score
¶ - Result of the Fraugster checkContains the overall Fraud score which is an integer between 0 and 99
Type: int
-
-
class
worldline.connect.sdk.v1.domain.frequency.
Frequency
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
The object containing the frequency and interval between recurring payments.-
interval
¶ - The interval between recurring payments specified as days, weeks, quarters, or years.
Type: str
-
interval_frequency
¶ - The number of days, weeks, months, quarters, or years between recurring payments.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.g_pay_three_d_secure.
GPayThreeDSecure
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
challenge_canvas_size
¶ - Dimensions of the challenge window that potentially will be displayed to the customer. The challenge content is formatted to appropriately render in this window to provide the best possible user experience.Preconfigured sizes are width x height in pixels of the window displayed in the customer browser window. Possible values are:
- 250x400 (default)
- 390x400
- 500x600
- 600x400
- full-screen
.Type: str
-
challenge_indicator
¶ - Allows you to indicate if you want the customer to be challenged for extra security on this transaction.Possible values:
- no-preference - You have no preference whether or not to challenge the customer (default)
- no-challenge-requested - you prefer the cardholder not to be challenged
- challenge-requested - you prefer the customer to be challenged
- challenge-required - you require the customer to be challenged
Type: str
-
exemption_request
¶ - Type of strong customer authentication (SCA) exemption requested for this transaction. Possible values:
- none - No exemption flagging is to be used of this transaction (Default).
- automatic - Our systems will determine the best possible exemption based on the transaction parameters and the risk scores.
- transaction-risk-analysis - You have determined that this transaction is of low risk and are willing to take the liability. Please note that your fraud rate needs to stay below thresholds to allow your use of this exemption.
- low-value - The value of the transaction is below 30 EUR. Please note that the issuer will still require every 5th low-value transaction pithing 24 hours to be strongly authenticated. The issuer will also keep track of the cumulative amount authorized on the card. When this exceeds 100 EUR strong customer authentication is also required.
- whitelist - You have been whitelisted by the customer at the issuer.
Type: str
-
redirection_data
¶ - Object containing browser specific redirection related data
Type:
worldline.connect.sdk.v1.domain.redirection_data.RedirectionData
-
skip_authentication
¶ - true = 3D Secure authentication will be skipped for this transaction. This setting should be used when isRecurring is set to true and recurringPaymentSequenceIndicator is set to recurring.
- false = 3D Secure authentication will not be skipped for this transaction.
Note: This is only possible if your account in our system is setup for 3D Secure authentication and if your configuration in our system allows you to override it per transaction.Type: bool
-
-
class
worldline.connect.sdk.v1.domain.get_customer_details_request.
GetCustomerDetailsRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Input for the retrieval of a customer’s details.-
country_code
¶ - The code of the country where the customer should reside.
Type: str
-
values
¶ - A list of keys with a value used to retrieve the details of a customer. Depending on the country code, different keys are required. These can be determined with a getPaymentProduct call and using payment product properties with the property usedForLookup set to true.
Type: list[
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
]
-
-
class
worldline.connect.sdk.v1.domain.get_customer_details_response.
GetCustomerDetailsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Output for the retrieval of a customer’s details.-
city
¶ - The city in which the customer resides.
Type: str
-
country
¶ - The country in which the customer resides.
Type: str
-
email_address
¶ - The email address registered to the customer.
Type: str
-
first_name
¶ - The first name of the customer
Type: str
-
fiscal_number
¶ - The fiscal number (SSN) for the customer.
Type: str
-
language_code
¶ - The code of the language used by the customer.
Type: str
-
phone_number
¶ - The phone number registered to the customer.
Type: str
-
street
¶ - The street on which the customer resides.
Type: str
-
surname
¶ - The surname or family name of the customer.
Type: str
-
zip
¶ - The ZIP or postal code for the area in which the customer resides.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.get_hosted_checkout_response.
GetHostedCheckoutResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
created_payment_output
¶ - When a payment has been created during the hosted checkout session this object will return the details.
Type:
worldline.connect.sdk.v1.domain.created_payment_output.CreatedPaymentOutput
-
status
¶ - This is the status of the hosted checkout. Possible values are:
- IN_PROGRESS - The checkout is still in progress and has not finished yet
- PAYMENT_CREATED - A payment has been created
- CANCELLED_BY_CONSUMER - If a customer cancels the payment on the payment product detail page of the MyCheckout hosted payment pages, the status will change to IN_PROGRESS. Since we understand you want to be aware of a customer cancelling the payment on the page we host for you, you can choose to receive the status CANCELLED_BY_CONSUMER instead of the status IN_PROGRESS. In order to receive the status CANCELLED_BY_CONSUMER, you need to have the returnCancelState flag enabled in the Create hosted checkout <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/hostedcheckouts/create.html> call.
- CLIENT_NOT_ELIGIBLE_FOR_SELECTED_PAYMENT_PRODUCT - With some payment products it might occur that the device of the user is not capable to complete the payment. If the Hosted Checkout Session was restricted to a single project that is not compatible to the user’s device you will receive this Hosted Checkout status. This scenario applies to: Google Pay (Payment Product ID: 320).
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
-
class
worldline.connect.sdk.v1.domain.get_hosted_mandate_management_response.
GetHostedMandateManagementResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate
¶ - When a mandate has been created during the hosted mandate management session this object will return the details.
Type:
worldline.connect.sdk.v1.domain.mandate_response.MandateResponse
-
status
¶ - This is the status of the hosted mandate management. Possible values are:
- IN_PROGRESS - The session has been created, but no mandate has been created yet.
- MANDATE_CREATED - A mandate has been created, the customer might still need to sign the mandate.
- FAILED - There was an error while creating the mandate, the session can not continue.
- CANCELLED_BY_CONSUMER - The session was cancelled before a mandate was created
.Type: str
-
-
class
worldline.connect.sdk.v1.domain.get_iin_details_request.
GetIINDetailsRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Input for the retrieval of the IIN details request.-
bin
¶ - The first digits of the credit card number from left to right with a minimum of 6 digits. Providing additional digits can result in more co-brands being returned.
Type: str
-
payment_context
¶ - Optional payment context to refine the IIN lookup to filter out payment products not applicable to your payment.
Type:
worldline.connect.sdk.v1.domain.payment_context.PaymentContext
-
-
class
worldline.connect.sdk.v1.domain.get_iin_details_response.
GetIINDetailsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Output of the retrieval of the IIN details request-
co_brands
¶ - Populated only if the card has multiple brands.A list with for every brand of the card, the payment product identifier associated with that brand, and if you submitted a payment context, whether that payment product is allowed in the context.
Type: list[
worldline.connect.sdk.v1.domain.iin_detail.IINDetail
]
-
country_code
¶ - The ISO 3166-1 alpha-2 country code of the country where the card was issued. If we don’t know where the card was issued, then the countryCode will return the value ‘99’.
Type: str
-
is_allowed_in_context
¶ - Populated only if you submitted a payment context.
- true - The payment product is allowed in the submitted context.
- false - The payment product is not allowed in the submitted context. Note that in this case, none of the brands of the card will be allowed in the submitted context.
Type: bool
-
payment_product_id
¶ - The payment product identifier associated with the card. If the card has multiple brands, then we select the most appropriate payment product based on your configuration and the payment context, if you submitted one.Please see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values
Type: int
-
-
class
worldline.connect.sdk.v1.domain.get_installment_request.
GetInstallmentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Using the Installment Service API you can ask us to provide you with information related to the available installment options, based on the country, amount and optionally payment productId and bin number.-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
bin
¶ - The first digits of the card number from left to right with a minimum of 6 digits
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.get_mandate_response.
GetMandateResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate
¶ - Object containing information on a mandate.
Type:
worldline.connect.sdk.v1.domain.mandate_response.MandateResponse
-
-
class
worldline.connect.sdk.v1.domain.get_privacy_policy_response.
GetPrivacyPolicyResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Output of the retrieval of the privacy policy-
html_content
¶ - HTML content to be displayed to the user
Type: str
-
-
class
worldline.connect.sdk.v1.domain.gift_card_purchase.
GiftCardPurchase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information on purchased gift card(s)-
amount_of_money
¶ - Object containing information on an amount of money
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
number_of_gift_cards
¶ - Number of gift cards that are purchased through this transaction
Type: int
-
-
class
worldline.connect.sdk.v1.domain.hosted_checkout_specific_input.
HostedCheckoutSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
is_recurring
¶ - true - Only payment products that support recurring payments will be shown. Any transactions created will also be tagged as being a first of a recurring sequence.
- false - Only payment products that support one-off payments will be shown.
The default value for this property is false.Type: bool
-
locale
¶ - Locale to use to present the MyCheckout payment pages to the customer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not setup on your account we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
payment_product_filters
¶ - Contains the payment product ids and payment product groups that will be used for manipulating the payment products available for the payment to the customer.
-
recurring_payments_data
¶ - The object containing reference data for the text that can be displayed on MyCheckout hosted payment page with subscription information.Note:The data in this object is only meant for displaying recurring payments-related data on your checkout page.You still need to submit all the recurring payment-related data in the corresponding payment product-specific input. (example: cardPaymentMethodSpecificInput.recurring and cardPaymentMethodSpecificInput.isRecurring)
Type:
worldline.connect.sdk.v1.domain.recurring_payments_data.RecurringPaymentsData
-
return_cancel_state
¶ - This flag affects the status of a Hosted Checkout when a customer presses the cancel button and is returned to you as a result.If set to true, then the status will be CANCELLED_BY_CONSUMER. If set to false, then the status will be IN_PROGRESS.The default value is false. This flag was added to introduce the additional CANCELLED_BY_CONSUMER state as a non-breaking change.
Type: bool
-
return_url
¶ - The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
-
show_result_page
¶ - true - MyCheckout will show a result page to the customer when applicable. Default.
- false - MyCheckout will redirect the customer back to the provided returnUrl when this is possible.
The default value for this property is true.Type: bool
-
tokens
¶ - String containing comma separated tokens (no spaces) associated with the customer of this hosted checkout. Valid tokens will be used to present the customer the option to re-use previously used payment details. This means the customer for instance does not have to re-enter their card details again, which a big plus when the customer is using their mobile phone to complete the checkout.
Type: str
-
validate_shopping_cart
¶ - By default, validation is done for all the information required to display the shopping cart. Set this value to false if you would like to turn that feature off for a hosted checkout on the Ogone Payment Platform, in which case the rendering of the shopping cart will be skipped if any required information is missing. Use this when you want fraud-checks to be performed on the shopping cart, but do not want to suply all data needed for displaying it in the hosted checkout. The default value for this property is true.
Type: bool
-
variant
¶ - Using the Configuration Center it is possible to create multiple variations of your MyCheckout payment pages. By specifying a specific variant you can force the use of another variant then the default. This allows you to test out the effect of certain changes to your MyCheckout payment pages in a controlled manner. Please note that you need to specify the ID of the variant.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.hosted_checkout_specific_output.
HostedCheckoutSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
hosted_checkout_id
¶ - The ID of the Hosted Checkout Session in which the payment was made.
Type: str
-
variant
¶ - Using the Configuration Center it is possible to create multiple variations of your MyCheckout payment pages. By specifying a specific variant you can force the use of another variant then the default. This allows you to test out the effect of certain changes to your hosted mandate pages in a controlled manner. Please note that you need to specify the ID of the variant.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.hosted_file.
HostedFile
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
File items.-
file_name
¶ - The name of the file.
Type: str
-
file_size
¶ - The size of the file in bytes.
Type: str
-
file_type
¶ - The type of the file.
Type: str
-
id
¶ - The numeric identifier of the file.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.hosted_mandate_info.
HostedMandateInfo
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
alias
¶ - An alias for the mandate. This can be used to visually represent the mandate.Do not include any unobfuscated sensitive data in the alias.Default value if not provided is the obfuscated IBAN of the customer.
Type: str
-
customer
¶ - Customer object containing customer specific inputs
Type:
worldline.connect.sdk.v1.domain.mandate_customer.MandateCustomer
-
customer_reference
¶ - The unique identifier of a customer
Type: str
-
recurrence_type
¶ - Specifies whether the mandate is for one-off or recurring payments. Possible values are:
- UNIQUE
- RECURRING
Type: str
-
signature_type
¶ - Specifies whether the mandate is unsigned or singed by SMS. Possible values are:
- UNSIGNED
- SMS
Type: str
-
unique_mandate_reference
¶ - The unique identifier of the mandate
Type: str
-
-
class
worldline.connect.sdk.v1.domain.hosted_mandate_management_specific_input.
HostedMandateManagementSpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
locale
¶ - Locale to use to present the hosted mandate pages to the customer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not setup on your account we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
return_url
¶ - The URL that the customer is redirect to after the mandate flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
-
show_result_page
¶ - true - MyMandate will show a result page to the customer when applicable. Default.
- false - MyMandate will redirect the customer back to the provided returnUrl when this is possible.
The default value for this property is true.Type: bool
-
variant
¶ - The ID of the variant used to create the Hosted Mandate Management Session in which the payment was made.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.iin_detail.
IINDetail
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Output of the retrieval of the IIN details request-
is_allowed_in_context
¶ - Populated only if you submitted a payment context.
- true - The payment product is allowed in the submitted context.
- false - The payment product is not allowed in the submitted context. Note that in this case, none of the brands of the card will be allowed in the submitted context.
Type: bool
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.in_auth.
InAuth
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
device_category
¶ - The type of device used by the customer. Example values:
- SMARTPHONE
- PERSONAL_COMPUTER
- TABLET
- WEARABLE_COMPUTER
- GAME_CONSOLE
- SMART_TV
- PDA
- OTHER
- UNKNOWN
Type: str
-
device_id
¶ - This is the device fingerprint value. Based on the amount of data that the device fingerprint collector script was able to collect, this will be a proxy ID for the device used by the customer.
Type: str
-
risk_score
¶ - The score calculated on the basis of Anomalies, Velocity, Location, Integrity, List-Based, and Device Reputation. Range of the score is between 0 and 100. A lower value is better.
Type: str
-
true_ip_address
¶ - The true IP address as determined by inAuth. This might be different from the IP address that you are seeing on your side due to the proxy piercing technology deployed by inAuth.
Type: str
-
true_ip_address_country
¶ - The country of the customer based on the location of the True IP Address determined by inAuth.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.installment_display_hints.
InstallmentDisplayHints
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information for the client on how best to display this options-
display_order
¶ - Determines the order in which the installment options should be shown (sorted ascending). In countries like Turkey there are multiple loyalty programs that offer installments
Type: int
-
label
¶ - Name of the installment option
Type: str
-
logo
¶ - Partial URL that you can reference for the image of this installment provider. You can use our server-side resize functionality by appending ‘?size={{width}}x{{height}}’ to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.installment_options.
InstallmentOptions
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Array containing installment options their details and characteristics-
display_hints
¶ - Object containing information for the client on how best to display the installment options
Type:
worldline.connect.sdk.v1.domain.installment_display_hints.InstallmentDisplayHints
-
id
¶ - The ID of the installment option in our system
Type: str
-
installment_plans
¶ - Object containing information about installment plans
Type: list[
worldline.connect.sdk.v1.domain.installments.Installments
]
-
-
class
worldline.connect.sdk.v1.domain.installment_options_response.
InstallmentOptionsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
The response contains the details of the installment options-
installment_options
¶ - Array containing installment options their details and characteristics
Type: list[
worldline.connect.sdk.v1.domain.installment_options.InstallmentOptions
]
-
-
class
worldline.connect.sdk.v1.domain.installments.
Installments
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data related to installments which can be used for card payments and only with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.-
amount_of_money_per_installment
¶ - The amount that will be paid per installment. The total amount of amountOfMoneyPerInstallment x numberOfInstallments can not be higher than the total amount of this transaction, although we will not validate that.For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer.
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
amount_of_money_total
¶ - Object containing the total amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
frequency_of_installments
¶ - The frequency in which the installments will be collected from the customer. The possible values are:
- daily
- weekly
- monthly (default)
- quarterly
For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), only the value monthly is valid.Type: str
-
installment_plan_code
¶ - The code for the installment plan. The possible values are:
- 43 No-interest, 3 month Installmentplan
- **46**No-interest, 6 month Installmentplan
- **49**No-interest, 9 month Installmentplan
- **52**No-interest, 12 month Installmentplan
Type: int
-
interest_rate
¶ - The interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer.
Type: str
-
number_of_installments
¶ - The number of installments in which this transaction will be paid, which can be used for card payments at supported acquirers, or with specific payment products. Only used with some acquirers. In case you send in the details of this object, only the payment products (or combination of card products and acquirers) that support installments will be shown on the MyCheckout hosted payment pages. If this property is not provided the customer will not see details on the installment plan in a HostedCheckout.For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), there is a maximum of 12 installments.
Type: long
-
-
class
worldline.connect.sdk.v1.domain.invoice_payment_method_specific_input.
InvoicePaymentMethodSpecificInput
[source]¶ -
-
additional_reference
¶ - Your (additional) reference identifier for this transaction. Data supplied in this property will also be returned in our report files, allowing you to reconcile the incoming funds.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.invoice_payment_method_specific_output.
InvoicePaymentMethodSpecificOutput
[source]¶ -
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
-
class
worldline.connect.sdk.v1.domain.key_value_pair.
KeyValuePair
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
key
¶ - Name of the key or property
Type: str
-
value
¶ - Value of the key or property
Type: str
-
-
class
worldline.connect.sdk.v1.domain.label_template_element.
LabelTemplateElement
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
attribute_key
¶ - Name of the attribute that is shown to the customer on selection pages or screens
Type: str
-
mask
¶ - Regular mask for the attributeKeyNote: The mask is optional as not every field has a mask
Type: str
-
-
class
worldline.connect.sdk.v1.domain.length_validator.
LengthValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
max_length
¶ - The maximum allowed length
Type: int
-
min_length
¶ - The minimum allowed length
Type: int
-
-
class
worldline.connect.sdk.v1.domain.level3_summary_data.
Level3SummaryData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Deprecated; Use ShoppingCart.amountBreakdown instead
-
discount_amount
¶ - Discount on the entire transaction, with the last 2 digits are implied decimal places
Type: long
Deprecated; Use ShoppingCart.amountBreakdown with type DISCOUNT instead
-
duty_amount
¶ - Duty on the entire transaction, with the last 2 digits are implied decimal places
Type: long
Deprecated; Use ShoppingCart.amountBreakdown with type DUTY instead
-
shipping_amount
¶ - Shippingcost on the entire transaction, with the last 2 digits are implied decimal places
Type: long
Deprecated; Use ShoppingCart.amountBreakdown with type SHIPPING instead
-
-
class
worldline.connect.sdk.v1.domain.line_item.
LineItem
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributesNote: make sure you submit the amount and currency code for each line item
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
invoice_data
¶ - Object containing the line items of the invoice or shopping cart. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type:
worldline.connect.sdk.v1.domain.line_item_invoice_data.LineItemInvoiceData
-
level3_interchange_information
¶ - Object containing additional information that when supplied can have a beneficial effect on the discountrates
Deprecated; Use orderLineDetails instead
-
order_line_details
¶ - Object containing additional information that when supplied can have a beneficial effect on the discountrates
Type:
worldline.connect.sdk.v1.domain.order_line_details.OrderLineDetails
-
-
class
worldline.connect.sdk.v1.domain.line_item_invoice_data.
LineItemInvoiceData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
description
¶ - Shopping cart item description
Type: str
-
merchant_linenumber
¶ - Line number for printed invoice or order of items in the cartShould be a numeric string
Type: str
-
merchant_pagenumber
¶ - Page number for printed invoiceShould be a numeric string
Type: str
-
nr_of_items
¶ - Quantity of the item
Type: str
-
price_per_item
¶ - Price per item
Type: long
-
-
class
worldline.connect.sdk.v1.domain.line_item_level3_interchange_information.
LineItemLevel3InterchangeInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
discount_amount
¶ - Discount on the line item, with the last two digits are implied decimal places
Type: long
-
line_amount_total
¶ - Total amount for the line item
Type: long
-
product_code
¶ - Product or UPC Code, left justifiedNote: Must not be all spaces or all zeros
Type: str
-
product_price
¶ - The price of one unit of the product, the value should be zero or greater
Type: long
-
product_type
¶ - Code used to classify items that are purchasedNote: Must not be all spaces or all zeros
Type: str
-
quantity
¶ - Quantity of the units being purchased, should be greater than zeroNote: Must not be all spaces or all zeros
Type: long
-
tax_amount
¶ - Tax on the line item, with the last two digits are implied decimal places
Type: long
-
unit
¶ - Indicates the line item unit of measure; for example: each, kit, pair, gallon, month, etc.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.loan_recipient.
LoanRecipient
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Deprecated; No replacement
-
account_number
¶ - Should be filled with the last 10 digits of the bank account number of the recipient of the loan.
Type: str
Deprecated; No replacement
-
date_of_birth
¶ - The date of birth of the customer of the recipient of the loan.Format: YYYYMMDD
Type: str
Deprecated; No replacement
-
partial_pan
¶ - Should be filled with the first 6 and last 4 digits of the PAN number of the recipient of the loan.
Type: str
Deprecated; No replacement
-
surname
¶ - Surname of the recipient of the loan.
Type: str
Deprecated; No replacement
-
zip
¶ - Zip code of the recipient of the loan
Type: str
Deprecated; No replacement
-
-
class
worldline.connect.sdk.v1.domain.lodging_charge.
LodgingCharge
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object that holds lodging related charges-
charge_amount
¶ - Amount of additional charges associated with the stay of the guest.Note: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
Type: long
-
charge_amount_currency_code
¶ - Currency for Charge amount. The code should be in 3 letter ISO format.
Type: str
-
charge_type
¶ - Type of additional charges associated with the stay of the guest.Allowed values:
- lodging
- telephone
- restaurant
- minibar
- giftshop
- laundry
- transport
- gratuity
- conferenceRoom
- audiovisual
- banquet
- internet
- earlyDeparture
- roomService
- loungeBar
- other
Type: str
-
-
class
worldline.connect.sdk.v1.domain.lodging_data.
LodgingData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object that holds lodging specific data-
charges
¶ - Object that holds lodging related charges
Type: list[
worldline.connect.sdk.v1.domain.lodging_charge.LodgingCharge
]
-
check_in_date
¶ - The date the guest checks into (or plans to check in to) the facility.Format: YYYYMMDD
Type: str
-
check_out_date
¶ - The date the guest checks out of (or plans to check out of) the facility.Format: YYYYMMDD
Type: str
-
folio_number
¶ - The Lodging Folio Number assigned to the itemized statement of charges and credits associated with this lodging stay, which can be any combination of characters and numerals defined by the Merchant or authorized Third Party Processor.
Type: str
-
is_confirmed_reservation
¶ - Indicates whether the room reservation is confirmed.
- true - The room reservation is confirmed
- false - The room reservation is not confirmed
Type: bool
-
is_facility_fire_safety_conform
¶ - Defines whether or not the facility conforms to the requirements of the Hotel and Motel Fire Safety Act of 1990, or similar legislation.
- true - The facility conform to the requirements
- false - The facility doesn’t conform to the requirements
Type: bool
-
is_no_show
¶ - Indicate if this the customer is a no show case. In such case, the lodging property can charge a no show fee.
- true - The customer is a no show
- false - Not applicable
Type: bool
-
is_preference_smoking_room
¶ - Indicated the preference of the customer for a smoking or non-smoking room.
- true - A smoking room is preferred
- false - A non-smoking room is preferred
Type: bool
-
number_of_adults
¶ - The total number of adult guests staying (or planning to stay) at the facility (i.e., all booked rooms)
Type: int
-
number_of_nights
¶ - The number of nights for the lodging stay
Type: int
-
number_of_rooms
¶ - The number of rooms rented for the lodging stay
Type: int
-
program_code
¶ - Code that corresponds to the category of lodging charges detailed in this message.Allowed values:
- lodging - (Default) Submitted charges are for lodging
- noShow - Submitted charges are for the failure of the guest(s) to check in for reserved a room
- advancedDeposit - Submitted charges are for an Advanced Deposit to reserve one or more rooms
If no value is submitted the default value lodging is used.Type: str
-
property_customer_service_phone_number
¶ - The international customer service phone number of the facility
Type: str
-
property_phone_number
¶ - The local phone number of the facility in an international phone number format
Type: str
-
renter_name
¶ - Name of the person or business entity charged for the reservation and/or lodging stay
Type: str
-
rooms
¶ - Object that holds lodging related room data
Type: list[
worldline.connect.sdk.v1.domain.lodging_room.LodgingRoom
]
-
-
class
worldline.connect.sdk.v1.domain.lodging_room.
LodgingRoom
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object that holds lodging related room data-
daily_room_rate
¶ - Daily room rate exclusive of any taxes and feesNote: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
Type: str
-
daily_room_rate_currency_code
¶ - Currency for Daily room rate. The code should be in 3 letter ISO format
Type: str
-
daily_room_tax_amount
¶ - Daily room taxNote: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
Type: str
-
daily_room_tax_amount_currency_code
¶ - Currency for Daily room tax. The code should be in 3 letter ISO format
Type: str
-
number_of_nights_at_room_rate
¶ - Number of nights charged at the rate in the dailyRoomRate property
Type: int
-
room_location
¶ - Location of the room within the facility, e.g. Park or Garden etc.
Type: str
-
room_number
¶ - Room number
Type: str
-
type_of_bed
¶ - Size of bed, e.g., king, queen, double.
Type: str
-
type_of_room
¶ - Describes the type of room, e.g., standard, deluxe, suite.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_address.
MandateAddress
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Address details of the consumer-
city
¶ - City
Type: str
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
house_number
¶ - House number
Type: str
-
street
¶ - Streetname
Type: str
-
zip
¶ - Zip code
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_approval.
MandateApproval
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate_signature_date
¶ - The date when the mandate was signedFormat: YYYYMMDD
Type: str
-
mandate_signature_place
¶ - The city where the mandate was signed
Type: str
-
mandate_signed
¶ - true = Mandate is signed
- false = Mandate is not signed
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.mandate_contact_details.
MandateContactDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Contact details of the consumer-
email_address
¶ - Email address of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_customer.
MandateCustomer
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_iban
¶ - Object containing IBAN information
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
company_name
¶ - Name of company, as a customer
Type: str
-
contact_details
¶ - Object containing contact details like email address and phone number
Type:
worldline.connect.sdk.v1.domain.mandate_contact_details.MandateContactDetails
-
mandate_address
¶ - Object containing billing address details
Type:
worldline.connect.sdk.v1.domain.mandate_address.MandateAddress
-
personal_information
¶ - Object containing personal information of the customer
Type:
worldline.connect.sdk.v1.domain.mandate_personal_information.MandatePersonalInformation
-
-
class
worldline.connect.sdk.v1.domain.mandate_merchant_action.
MandateMerchantAction
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
action_type
¶ - Action merchants needs to take in the online mandate process. Possible values are:
- REDIRECT - The customer needs to be redirected using the details found in redirectData
Type: str
-
redirect_data
¶ - Object containing all data needed to redirect the customer
Type:
worldline.connect.sdk.v1.domain.mandate_redirect_data.MandateRedirectData
-
-
class
worldline.connect.sdk.v1.domain.mandate_non_sepa_direct_debit.
MandateNonSepaDirectDebit
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product705_specific_data
¶ - Object containing specific data for Direct Debit UK
-
payment_product730_specific_data
¶ - Object containing specific data for ACH
-
-
class
worldline.connect.sdk.v1.domain.mandate_personal_information.
MandatePersonalInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
name
¶ - Object containing the name details of the customer
Type:
worldline.connect.sdk.v1.domain.mandate_personal_name.MandatePersonalName
-
title
¶ - Object containing the title of the customer (Mr, Miss or Mrs)
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_personal_name.
MandatePersonalName
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
first_name
¶ - Given name(s) or first name(s) of the customer
Type: str
-
surname
¶ - Surname(s) or last name(s) of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_redirect_data.
MandateRedirectData
[source]¶ Bases:
worldline.connect.sdk.v1.domain.redirect_data_base.RedirectDataBase
-
class
worldline.connect.sdk.v1.domain.mandate_response.
MandateResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
alias
¶ - An alias for the mandate. This can be used to visually represent the mandate.Do not include any unobfuscated sensitive data in the alias.Default value if not provided is the obfuscated IBAN of the customer.
Type: str
-
customer
¶ - Customer object containing customer specific inputs
Type:
worldline.connect.sdk.v1.domain.mandate_customer.MandateCustomer
-
customer_reference
¶ - The unique identifier of the customer to which this mandate is applicable
Type: str
-
recurrence_type
¶ - Specifieds whether the mandate is for one-off or recurring payments.
Type: str
-
status
¶ - The status of the mandate. Possible values are:
- ACTIVE
- EXPIRED
- CREATED
- REVOKED
- WAITING_FOR_REFERENCE
- BLOCKED
- USED
Type: str
-
unique_mandate_reference
¶ - The unique identifier of the mandate
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_sepa_direct_debit.
MandateSepaDirectDebit
[source]¶ -
-
creditor
¶ - Object containing information on the creditor
-
-
class
worldline.connect.sdk.v1.domain.mandate_sepa_direct_debit_with_mandate_id.
MandateSepaDirectDebitWithMandateId
[source]¶ -
-
mandate_id
¶ - Unique mandate identifier
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mandate_sepa_direct_debit_without_creditor.
MandateSepaDirectDebitWithoutCreditor
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_iban
¶ - Object containing Account holder and IBAN information
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
customer_contract_identifier
¶ - Identifies the contract between customer and merchant
Type: str
-
debtor
¶ - Object containing information on the debtor
-
is_recurring
¶ - true
- false
Type: bool
-
mandate_approval
¶ - Object containing the details of the mandate approval
Type:
worldline.connect.sdk.v1.domain.mandate_approval.MandateApproval
-
pre_notification
¶ - Indicates whether a pre-notification should be sent to the customer.
- do-not-send - Do not send a pre-notification
- send-on-first-collection - Send a pre-notification
Type: str
-
-
class
worldline.connect.sdk.v1.domain.merchant.
Merchant
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
configuration_id
¶ - In case your account has been setup with multiple configurations you can use this property to identify the one you would like to use for the transaction. Note that you can only submit preconfigured values in combination with the Worldline Online Payments Acceptance platform. In case no value is supplied a default value of 0 will be submitted to the Worldline Online Payments Acceptance platform. The Worldline Online Payments Acceptance platform internally refers to this as a PosId.
Type: str
-
contact_website_url
¶ - URL to find contact or support details to contact in case of questions.
Type: str
-
seller
¶ - Object containing seller details
-
website_url
¶ - The website from which the purchase was made. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.merchant_action.
MerchantAction
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
action_type
¶ - Action merchants needs to take in the online payment process. Possible values are:
- REDIRECT - The customer needs to be redirected using the details found in redirectData
- SHOW_FORM - The customer needs to be shown a form with the fields found in formFields. You can submit the data entered by the user in a Complete payment <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/complete.html> request. Additionally:
- for payment product 3012 (Bancontact), to support payments via the Bancontact app, showData contains a QR code and URL intent.
- for payment product 863 (WeChat Pay), to support payments via the WeChat app, showData contains a QR code, URL intent, or signature and nonce combination. The showData property describes when each of these values can be returned.
Note that WeChat Pay does not support completing payments.- SHOW_INSTRUCTIONS - The customer needs to be shown payment instruction using the details found in showData. Alternatively the instructions can be rendered by us using the instructionsRenderingData
- SHOW_TRANSACTION_RESULTS - The customer needs to be shown the transaction results using the details found in showData
- MOBILE_THREEDS_CHALLENGE - The customer needs to complete a challenge as part of the 3D Secure authentication inside your mobile app. The details contained in mobileThreeDSecureChallengeParameters need to be provided to the EMVco certified Mobile SDK as a challengeParameters object.
- INITIALIZE_INAPP_THREED_SECURE_SDK - You need to initialize the 3D in app SDK using the returned parameters. The details contained in mobileThreeDSecureChallengeParameters need to be provided to the EMVco certified Mobile SDK as an initializationParameters object.
- CALL_THIRD_PARTY - The merchant needs to call a third party using the data found in thirdPartyData
Type: str
-
form_fields
¶ - Populated only when the actionType of the merchantAction is SHOW_FORM. In this case, this property contains the list of fields to render, in the format that is also used in the response of Get payment product <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/get.html>.
Type: list[
worldline.connect.sdk.v1.domain.payment_product_field.PaymentProductField
]
-
mobile_three_d_secure_challenge_parameters
¶ - Populated only when the actionType of the merchantAction is MOBILE_THREEDS_CHALLENGE. In this case, this object contains the list of properties to provide to the EMVco certified Mobile SDK as a challengeParameters object.
-
redirect_data
¶ - Object containing all data needed to redirect the customer
Type:
worldline.connect.sdk.v1.domain.redirect_data.RedirectData
-
rendering_data
¶ - This property contains the blob with data for the instructions rendering service.This service will be available at the following endpoint:http(s)://{{merchant specific subdomain}}.{{base MyCheckout hosted payment pages domain}}/instructions/{{merchantId}}/{{clientSessionId}}This instructions page rendering service accepts the following parameters:
- instructionsRenderingData (required, the content of this property)
- locale (optional, if present overrides default locale, e.g. “en_GB”)
- variant (optional, code of a variant, if present overrides default variant, e.g. “100”)
- customerId (required for Pix, otherwise optional, the customerId from a client session)
You can offer a link to a customer to see an instructions page for a payment done earlier. Because of the size of the instructionsRenderingData this will need to be set in a web form as a value of a hidden field. Before presenting the link you need to obtain a clientSessionId by creating a session using the S2S API. You will need to use the MyCheckout hosted payment pages domain hosted in the same region as the API domain used for the createClientSession call.The instructionsRenderingData is a String blob that is presented to you via the Server API as part of the merchantAction (if available, and non-redirect) in the JSON return values for the createPayment call or the getHostedCheckoutStatus call (merchantAction inside createdPaymentOutput when available).You are responsible to store the instructionsRenderingData blob in order to be able to present the instructions page at a later time, when this information might no longer be available through Server API calls.Type: str
-
show_data
¶ - This is returned for the SHOW_INSTRUCTION, the SHOW_TRANSACTION_RESULTS and the SHOW_FORM actionType.When returned for SHOW_TRANSACTION_RESULTS or SHOW_FORM, this contains an array of key value pairs of data that needs to be shown to the customer.Note: The returned value for the key BARCODE is a base64 encoded gif image. By prepending ‘data:image/gif;base64,’ this value can be used as the source of an HTML inline image.For SHOW_FORM, for payment product 3012 (Bancontact), this contains a QR code and a URL intent that can be used to complete the payment in the Bancontact app.In this case, the key QRCODE contains a base64 encoded PNG image. By prepending ‘data:image/png;base64,’ this value can be used as the source of an HTML inline image on a desktop or tablet (intended to be scanned by an Android device with the Bancontact app). The key URLINTENT contains a URL intent that can be used as the link of an ‘open the app’ button on an Android device.For SHOW_FORM, for payment product 863 (WeChat Pay), this contains the PaymentId that WeChat has assigned to the payment. In this case, the key WECHAT_PAYMENTID contains this PaymentId. In addition, this can contain different values depending on the integration type:
- desktopQRCode - contains a QR code that can be used to complete the payment in the WeChat app. In this case, the key QRCODE contains a base64 encoded PNG image. By prepending ‘data:image/png;base64,’ this value can be used as the source of an HTML inline image on a desktop or tablet (intended to be scanned by a mobile device with the WeChat app).
- urlIntent - contains a URL intent that can be used to complete the payment in the WeChat app. In this case, the key URLINTENT contains a URL intent that can be used as the link of an ‘open the app’ button on a mobile device.
For SHOW_FORM, for payment product 740 (PromptPay), this contains a QR code image URL and a timestamp with the expiration date-time of the QR code. In this case, the key QRCODE_IMAGE_URL contains a URL that can be used as the source of an HTML inline image on a desktop. For tablets and mobile devices, it is advised to use the <a> download attribute, so the user can download the image on their device and upload it in their banking mobile application. The key COUNTDOWN_DATETIME, contains a date-time that the QR code will expire. The date-time is in UTC with format: YYYYMMDDHH24MISS. You are advised to show a countdown timer.Type: list[
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
]
-
third_party_data
¶ - This is returned for the CALL_THIRD_PARTY actionType.The payment product specific field of the payment product used for the payment will be populated with the third party data that should be used when calling the third party.
Type:
worldline.connect.sdk.v1.domain.third_party_data.ThirdPartyData
-
-
class
worldline.connect.sdk.v1.domain.merchant_risk_assessment.
MerchantRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
website_url
¶ - The website from which the purchase was made
Type: str
-
-
class
worldline.connect.sdk.v1.domain.microsoft_fraud_results.
MicrosoftFraudResults
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
clause_name
¶ - Name of the clause within the applied policy that was triggered during the evaluation of this transaction.
Type: str
-
device_country_code
¶ - The country of the customer determined by Microsoft Device Fingerprinting.
Type: str
-
device_id
¶ - This is the device fingerprint value. Based on the amount of data that the device fingerprint collector script was able to collect, this will be a proxy ID for the device used by the customer.
Type: str
-
fraud_score
¶ - Result of the Microsoft Fraud Protection check. This contains the normalized fraud score from a scale of 0 to 100. A higher score indicates an increased risk of fraud.
Type: int
-
policy_applied
¶ - Name of the policy that was applied on during the evaluation of this transaction.
Type: str
-
true_ip_address
¶ - The true IP address as determined by Microsoft Device Fingerprinting.
Type: str
-
user_device_type
¶ - The type of device used by the customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_data.
MobilePaymentData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
dpan
¶ - The obfuscated DPAN. Only the last four digits are visible.
Type: str
-
expiry_date
¶ - Expiry date of the tokenized cardFormat: MMYY
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_method_specific_input.
MobilePaymentMethodSpecificInput
[source]¶ -
- Determines the type of the authorization that will be used. Allowed values:
- FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can’t be reversed and need to be captured for the full amount within 7 days.
- PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
- SALE - The payment creation results in an authorization that is already captured at the moment of approval.
Only used with some acquirers, ingnored for acquirers that don’t support this. In case the acquirer doesn’t allow this to be specified the authorizationMode is ‘unspecified’, which behaves similar to a final authorization.Type: str
-
customer_reference
¶ - Reference of the customer for the payment (purchase order #, etc.). Only used with some acquirers.
Type: str
-
decrypted_payment_data
¶ - The payment data if you do the decryption of the encrypted payment data yourself.
Type:
worldline.connect.sdk.v1.domain.decrypted_payment_data.DecryptedPaymentData
-
encrypted_payment_data
¶ - The payment data if we will do the decryption of the encrypted payment data.Typically you’d use encryptedCustomerInput in the root of the create payment request to provide the encrypted payment data instead.
- For Apple Pay, the encrypted payment data is the PKPayment <https://developer.apple.com/documentation/passkit/pkpayment>.token.paymentData object passed as a string (with all quotation marks escaped).
- For Google Pay, the encrypted payment data can be found in property paymentMethodData.tokenizationData.token of the PaymentData <https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentData>.toJson() result.
Type: str
-
payment_product320_specific_input
¶ - Object containing information specific to Google Pay
-
requires_approval
¶ - true = the payment requires approval before the funds will be captured using the Capture payment <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/approve.html> API
- false = the payment does not require approval, and the funds will be captured automatically
Type: bool
-
skip_fraud_service
¶ - true = Fraud scoring will be skipped for this transaction
- false = Fraud scoring will not be skipped for this transaction
Note: This is only possible if your account in our system is setup for Fraud scoring and if your configuration in our system allows you to override it per transaction.Type: bool
-
class
worldline.connect.sdk.v1.domain.mobile_payment_method_specific_input_hosted_checkout.
MobilePaymentMethodSpecificInputHostedCheckout
[source]¶ -
- Determines the type of the authorization that will be used. Allowed values:
- FINAL_AUTHORIZATION - The payment creation results in an authorization that is ready for capture. Final authorizations can’t be reversed and need to be captured for the full amount within 7 days.
- PRE_AUTHORIZATION - The payment creation results in a pre-authorization that is ready for capture. Pre-authortizations can be reversed and can be captured within 30 days. The capture amount can be lower than the authorized amount.
- SALE - The payment creation results in an authorization that is already captured at the moment of approval.
Only used with some acquirers, ingnored for acquirers that don’t support this. In case the acquirer doesn’t allow this to be specified the authorizationMode is ‘unspecified’, which behaves similar to a final authorization.Type: str
-
customer_reference
¶ - Reference of the customer for the payment (purchase order #, etc.). Only used with some acquirers.
Type: str
-
payment_product302_specific_input
¶ - Object containing information specific to Apple Pay
-
payment_product320_specific_input
¶ - Object containing information specific to Google Pay (paymentProductId 320)
-
requires_approval
¶ - true = the payment requires approval before the funds will be captured using the Capture payment <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/approve.html> API
- false = the payment does not require approval, and the funds will be captured automatically
Type: bool
-
skip_fraud_service
¶ - true = Fraud scoring will be skipped for this transaction
- false = Fraud scoring will not be skipped for this transaction
Note: This is only possible if your account in our system is setup for Fraud scoring and if your configuration in our system allows you to override it per transaction.Type: bool
-
class
worldline.connect.sdk.v1.domain.mobile_payment_method_specific_output.
MobilePaymentMethodSpecificOutput
[source]¶ -
- Card Authorization code as returned by the acquirer
Type: str
-
fraud_results
¶ - Fraud results contained in the CardFraudResults object
Type:
worldline.connect.sdk.v1.domain.card_fraud_results.CardFraudResults
-
network
¶ - The network that was used for the refund
Type: str
-
payment_data
¶ - Object containing payment details
Type:
worldline.connect.sdk.v1.domain.mobile_payment_data.MobilePaymentData
-
three_d_secure_results
¶ - 3D Secure results object
Type:
worldline.connect.sdk.v1.domain.three_d_secure_results.ThreeDSecureResults
-
class
worldline.connect.sdk.v1.domain.mobile_payment_product302_specific_input_hosted_checkout.
MobilePaymentProduct302SpecificInputHostedCheckout
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
business_name
¶ - Used as an input for the Apple Pay payment button. Your default business name is configured in the Configuration Center. In case you want to use another business name than the one configured in the Configuration Center, provide your company name in a human readable form.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_product320_specific_input.
MobilePaymentProduct320SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
cardholder_name
¶ - The card holder’s name on the card. Minimum length of 2, maximum length of 51 characters.The encrypted payment data can be found in property paymentMethodData.tokenizationData.info.billingAddress.name of the PaymentData <https://developers.google.com/android/reference/com/google/android/gms/wallet/PaymentData>.toJson() result.
Type: str
-
three_d_secure
¶ - Object containing specific data regarding 3-D Secure
Type:
worldline.connect.sdk.v1.domain.g_pay_three_d_secure.GPayThreeDSecure
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_product320_specific_input_hosted_checkout.
MobilePaymentProduct320SpecificInputHostedCheckout
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
merchant_name
¶ - Used as an input for the Google Pay payment sheet. Provide your company name in a human readable form.
Type: str
-
merchant_origin
¶ - Used as an input for the Google Pay payment sheet. Provide the url of your webshop. For international (non-ASCII) domains, please use Punycode <https://en.wikipedia.org/wiki/Punycode>.
Type: str
-
three_d_secure
¶ - Object containing specific data regarding 3-D Secure
Type:
worldline.connect.sdk.v1.domain.g_pay_three_d_secure.GPayThreeDSecure
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_product_session302_specific_input.
MobilePaymentProductSession302SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
display_name
¶ - Used as an input for the Apple Pay payment button. Provide your company name in a human readable form.
Type: str
-
domain_name
¶ - Provide a fully qualified domain name of your own payment page that will be showing an Apple Pay button.
Type: str
-
validation_url
¶ - Provide the validation URL that has been provided by Apple once you have started an Apple Pay session.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mobile_payment_product_session302_specific_output.
MobilePaymentProductSession302SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
session_object
¶ - Object containing an opaque merchant session object.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.mobile_three_d_secure_challenge_parameters.
MobileThreeDSecureChallengeParameters
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
acs_reference_number
¶ - The unique identifier assigned by the EMVCo Secretariat upon testing and approval.
Type: str
-
acs_signed_content
¶ - Contains the JWS object created by the ACS for the challenge (ARes).
Type: str
-
acs_transaction_id
¶ - The ACS Transaction ID for a prior 3-D Secure authenticated transaction (for example, the first recurring transaction that was authenticated with the customer).
Type: str
-
three_d_server_transaction_id
¶ - The 3-D Secure version 2 transaction ID that is used for the 3D Authentication
Type: str
-
-
class
worldline.connect.sdk.v1.domain.non_sepa_direct_debit_payment_method_specific_input.
NonSepaDirectDebitPaymentMethodSpecificInput
[source]¶ -
-
date_collect
¶ - Direct Debit payment collection dateFormat: YYYYMMDD
Type: str
-
direct_debit_text
¶ - Descriptor intended to identify the transaction on the customer’s bank statement
Type: str
-
is_recurring
¶ - Indicates if this transaction is of a one-off or a recurring type
- true - This is recurring
- false - This is one-off
Type: bool
-
payment_product705_specific_input
¶ - Object containing UK Direct Debit specific details
-
payment_product730_specific_input
¶ - Object containing ACH specific details
-
recurring_payment_sequence_indicator
¶ - first = This transaction is the first of a series of recurring transactions
- recurring = This transaction is a subsequent transaction in a series of recurring transactions
- last = This transaction is the last transaction of a series of recurring transactions
Type: str
-
requires_approval
¶ - true - The payment requires approval before the funds will be captured using the Approve payment or Capture payment API.
- false - The payment does not require approval, and the funds will be captured automatically.
Type: bool
-
token
¶ - ID of the stored token that contains the bank account details to be debited
Type: str
-
tokenize
¶ - Indicates if this transaction should be tokenized
- true - Tokenize the transaction
- false - Do not tokenize the transaction, unless it would be tokenized by other means such as auto-tokenization of recurring payments.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.non_sepa_direct_debit_payment_method_specific_output.
NonSepaDirectDebitPaymentMethodSpecificOutput
[source]¶ -
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
-
class
worldline.connect.sdk.v1.domain.non_sepa_direct_debit_payment_product705_specific_input.
NonSepaDirectDebitPaymentProduct705SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
UK Direct Debit specific input fields- Core reference number for the direct debit instruction in UK
Type: str
-
bank_account_bban
¶ - Object containing account holder name and bank account information
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
transaction_type
¶ - first-payment - First payment direct debit
- nth-payment - Direct Debit (n-th payment)
- re-presented - Re-presented direct debit (after failed attempt)
- final-payment - Final payment direct debit
- new-or-reinstated - (zero N) New or reinstated direct debit instruction
- cancellation - (zero C) Cancellation of direct debit instruction
- conversion-of-paper-DDI-to-electronic-DDI - (zero S) Conversion of paper DDI to electronic DDI (only used once, when migrating from traditional direct debit to AUDDIS
Type: str
-
class
worldline.connect.sdk.v1.domain.non_sepa_direct_debit_payment_product730_specific_input.
NonSepaDirectDebitPaymentProduct730SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
ACH specific input fields-
bank_account_bban
¶ - Object containing account holder name and bank account information
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
-
class
worldline.connect.sdk.v1.domain.order.
Order
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_input
¶ - Object containing additional input on the order
Type:
worldline.connect.sdk.v1.domain.additional_order_input.AdditionalOrderInput
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
customer
¶ - Object containing the details of the customer
-
items
¶ - Shopping cart data
Type: list[
worldline.connect.sdk.v1.domain.line_item.LineItem
]Deprecated; Use shoppingCart.items instead
-
references
¶ - Object that holds all reference properties that are linked to this transaction
Type:
worldline.connect.sdk.v1.domain.order_references.OrderReferences
-
seller
¶ - Object containing seller details
Type:
worldline.connect.sdk.v1.domain.seller.Seller
Deprecated; Use Merchant.seller instead
-
shipping
¶ - Object containing information regarding shipping / delivery
-
shopping_cart
¶ - Shopping cart data, including items and specific amounts.
Type:
worldline.connect.sdk.v1.domain.shopping_cart.ShoppingCart
-
-
class
worldline.connect.sdk.v1.domain.order_approve_payment.
OrderApprovePayment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_input
¶ - Object containing additional input on the order
Type:
worldline.connect.sdk.v1.domain.additional_order_input_airline_data.AdditionalOrderInputAirlineData
-
customer
¶ - Object containing data related to the customer
Type:
worldline.connect.sdk.v1.domain.customer_approve_payment.CustomerApprovePayment
-
references
¶ - Object that holds all reference properties that are linked to this transaction
Type:
worldline.connect.sdk.v1.domain.order_references_approve_payment.OrderReferencesApprovePayment
-
-
class
worldline.connect.sdk.v1.domain.order_invoice_data.
OrderInvoiceData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_data
¶ - Additional data for printed invoices
Type: str
-
invoice_date
¶ - Date and time on invoiceFormat: YYYYMMDDHH24MISS
Type: str
-
invoice_number
¶ - Your invoice number (on printed invoice) that is also returned in our report files
Type: str
-
text_qualifiers
¶ - Array of 3 text qualifiers, each with a max length of 10 characters
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.order_line_details.
OrderLineDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
discount_amount
¶ - Discount on the line item, with the last two digits implied as decimal places
Type: long
-
google_product_category_id
¶ - The Google product category ID for the item.
Type: long
-
line_amount_total
¶ - Total amount for the line item
Type: long
-
naics_commodity_code
¶ - The UNSPC commodity code of the item.
Type: str
-
product_category
¶ - The category of the product (i.e. home appliance). This property can be used for fraud screening on the Ogone Platform.
Type: str
-
product_code
¶ - Product or UPC Code, left justifiedNote: Must not be all spaces or all zeros
Type: str
-
product_name
¶ - The name of the product. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
product_price
¶ - The price of one unit of the product, the value should be zero or greater
Type: long
-
product_sku
¶ - Product SKU number
Type: str
-
product_type
¶ - Code used to classify items that are purchasedNote: Must not be all spaces or all zeros
Type: str
-
quantity
¶ - Quantity of the units being purchased, should be greater than zeroNote: Must not be all spaces or all zeros
Type: long
-
tax_amount
¶ - Tax on the line item, with the last two digits implied as decimal places
Type: long
-
unit
¶ - Indicates the line item unit of measure; for example: each, kit, pair, gallon, month, etc.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.order_output.
OrderOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
references
¶ - Object that holds all reference properties that are linked to this transaction
Type:
worldline.connect.sdk.v1.domain.payment_references.PaymentReferences
-
-
class
worldline.connect.sdk.v1.domain.order_references.
OrderReferences
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
descriptor
¶ - Descriptive text that is used towards to customer, either during an online checkout at a third party and/or on the statement of the customer. For card transactions this is usually referred to as a Soft Descriptor. The maximum allowed length varies per card acquirer:
- AIB - 22 characters
- American Express - 25 characters
- Atos Origin BNP - 15 characters
- Barclays - 25 characters
- Catella - 22 characters
- CBA - 20 characters
- Elavon - 25 characters
- First Data - 25 characters
- INICIS (INIPAY) - 22-30 characters
- JCB - 25 characters
- Merchant Solutions - 22-25 characters
- Payvision (EU & HK) - 25 characters
- SEB Euroline - 22 characters
- Sub1 Argentina - 15 characters
- Wells Fargo - 25 characters
Note that we advise you to use 22 characters as the max length as beyond this our experience is that issuers will start to truncate. We currently also only allow per API call overrides for AIB and BarclaysFor alternative payment products the maximum allowed length varies per payment product:- 402 e-Przelewy - 30 characters
- 404 INICIS - 80 characters
- 802 Nordea ePayment Finland - 234 characters
- 809 iDeal - 32 characters
- 836 SOFORT - 42 characters
- 840 PayPal - 127 characters
- 841 WebMoney - 175 characters
- 849 Yandex - 64 characters
- 861 Alipay - 256 characters
- 863 WeChat Pay - 32 characters
- 880 BOKU - 20 characters
- 8580 Qiwi - 255 characters
- 1504 Konbini - 80 characters
All other payment products don’t support a descriptor.Type: str
-
invoice_data
¶ - Object containing additional invoice data
Type:
worldline.connect.sdk.v1.domain.order_invoice_data.OrderInvoiceData
-
merchant_order_id
¶ - Your order identifierNote: This does not need to have a unique value for each transaction. This allows your to link multiple transactions to the same logical order in your system.
Type: long
-
merchant_reference
¶ - Note that the maximum length of this field for transactions processed on the GlobalCollect platform is 30. Note that the maximum length of this field for transactions processed on the WL Online Payment Acceptance Platform platform is 50. Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
Type: str
-
provider_id
¶ - Provides an additional means of reconciliation for Gateway merchants
Type: str
-
provider_merchant_id
¶ - Provides an additional means of reconciliation, this is the MerchantId used at the provider
Type: str
-
-
class
worldline.connect.sdk.v1.domain.order_references_approve_payment.
OrderReferencesApprovePayment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
merchant_reference
¶ - Your (unique) reference for the transaction that you can use to reconcile our report files
Type: str
-
-
class
worldline.connect.sdk.v1.domain.order_risk_assessment.
OrderRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_input
¶ - Object containing additional input on the order
Type:
worldline.connect.sdk.v1.domain.additional_order_input_airline_data.AdditionalOrderInputAirlineData
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_risk_assessment.CustomerRiskAssessment
-
shipping
¶ - Object containing information regarding shipping / delivery
Type:
worldline.connect.sdk.v1.domain.shipping_risk_assessment.ShippingRiskAssessment
-
-
class
worldline.connect.sdk.v1.domain.order_status_output.
OrderStatusOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
errors
¶ - Custom object contains the set of errors
Type: list[
worldline.connect.sdk.v1.domain.api_error.APIError
]
-
is_cancellable
¶ - Flag indicating if the payment can be cancelled
- true
- false
Type: bool
-
is_retriable
¶ - Flag indicating whether a rejected payment may be retried by the merchant without incurring a fee
- true
- false
Type: bool
-
provider_raw_output
¶ - This is the raw response returned by the acquirer. This property contains unprocessed data directly returned by the acquirer. It’s recommended for data analysis only due to its dynamic nature, which may undergo future changes.
Type: list[
worldline.connect.sdk.v1.domain.key_value_pair.KeyValuePair
]
-
status_category
¶ - Highlevel status of the payment, payout or refund with the following possible values:
- CREATED - The transaction has been created. This is the initial state once a new payment, payout or refund is created. This category groups the following statuses:
- CREATED
- PENDING_PAYMENT: The payment is waiting on customer action. This category groups the following statuses:
- PENDING_PAYMENT
- REDIRECTED
- ACCOUNT_VERIFIED: The account has been verified. This category groups the following statuses:
- ACCOUNT_VERIFIED
- PENDING_MERCHANT: The transaction is awaiting approval to proceed with the payment, payout or refund. This category groups the following statuses:
- PENDING_APPROVAL
- PENDING_COMPLETION
- PENDING_CAPTURE
- PENDING_FRAUD_APPROVAL
- PENDING_CONNECT_OR_3RD_PARTY: The transaction is in the queue to be processed. This category groups the following statuses:
- AUTHORIZATION_REQUESTED
- CAPTURE_REQUESTED
- PAYOUT_REQUESTED
- REFUND_REQUESTED
- COMPLETED: The transaction has completed. This category groups the following statuses:
- CAPTURED
- PAID
- ACCOUNT_CREDITED
- CHARGEBACK_NOTIFICATION
- REVERSED: The transaction has been reversed. This category groups the following statuses:
- CHARGEBACKED
- REVERSED
- REFUNDED: The transaction has been refunded. This category groups the following statuses:
- REFUNDED
- UNSUCCESSFUL: The transaction has been rejected or is in such a state that it will never become successful. This category groups the following statuses:
- CANCELLED
- REJECTED
- REJECTED_CAPTURE
- REJECTED_CREDIT
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_code
¶ - Numeric status code of the legacy API. It is returned to ease the migration from the legacy APIs to Worldline Connect. You should not write new business logic based on this property as it will be deprecated in a future version of the API. The value can also be found in the GlobalCollect Payment Console, in the Ogone BackOffice and in report files.
Type: int
-
status_code_change_date_time
¶ - Date and time of paymentFormat: YYYYMMDDHH24MISS
Type: str
-
-
class
worldline.connect.sdk.v1.domain.order_type_information.
OrderTypeInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
funding_type
¶ - Identifies the funding type being authenticated. Possible values are:
- personToPerson = When it is person to person funding (P2P)
- agentCashOut = When fund is being paid out to final recipient in Cash by company’s agent.
- businessToConsumer = When fund is being transferred from business to consumer (B2C)
- businessToBusiness = When fund is being transferred from business to business (B2B)
- prefundingStagedWallet = When funding is being used to load the funds into the wallet account.
- storedValueDigitalWallet = When funding is being used to load the funds into a stored value digital wallet.
- fundingGiftCardForPersonalUse = When funding a gift card for personal use.
- fundingGiftCardForSomeoneElse = When funding a gift card for someone else.
Type: str
-
payment_code
¶ - Payment code to support account funding transactions. Possible values are:
- accountManagement
- paymentAllowance
- settlementOfAnnuity
- unemploymentDisabilityBenefit
- businessExpenses
- bonusPayment
- busTransportRelatedBusiness
- cashManagementTransfer
- paymentOfCableTVBill
- governmentInstituteIssued
- creditCardPayment
- creditCardBill
- charity
- collectionPayment
- commercialPayment
- commission
- compensation
- copyright
- debitCardPayment
- deposit
- dividend
- studyFees
- electricityBill
- energies
- generalFees
- ferry
- foreignExchange
- gasBill
- unemployedCompensation
- governmentPayment
- healthInsurance
- reimbursementCreditCard
- reimbursementDebitCard
- carInsurancePremium
- insuranceClaim
- installment
- insurancePremium
- investmentPayment
- intraCompany
- interest
- incomeTax
- investment
- laborInsurance
- licenseFree
- lifeInsurance
- loan
- medicalServices
- mobilePersonToBusiness
- mobilePersonToPerson
- mobileTopUp
- notSpecified
- other
- anotherTelecomBill
- payroll
- pensionFundContribution
- pensionPayment
- telephoneBill
- propertyInsurance
- generalLease
- rent
- railwayPayment
- royalties
- salary
- savingsPayment
- securities
- socialSecurity
- study
- subscription
- supplierPayment
- taxRefund
- taxPayment
- telecommunicationsBill
- tradeServices
- treasuryPayment
- travelPayment
- utilityBill
- valueAddedTaxPayment
- withHolding
- waterBill
.Type: str
-
purchase_type
¶ - Possible values are:
- physical
- digital
Type: str
-
transaction_type
¶ - Identifies the type of transaction being authenticated.Possible values are:
- purchase = The purpose of the transaction is to purchase goods or services (Default)
- check-acceptance = The purpose of the transaction is to accept a ‘check’/’cheque’
- account-funding = The purpose of the transaction is to fund an account
- quasi-cash = The purpose of the transaction is to buy a quasi cash type product that is representative of actual cash such as money orders, traveler’s checks, foreign currency, lottery tickets or casino gaming chips
- prepaid-activation-or-load = The purpose of the transaction is to activate or load a prepaid card
Type: str
-
usage_type
¶ - Possible values are:
- private
- commercial
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment.
Payment
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_order_status.AbstractOrderStatus
-
hosted_checkout_specific_output
¶ - Hosted Checkout specific information. Populated if the payment was created on the GlobalCollect platform through a Hosted Checkout.
Type:
worldline.connect.sdk.v1.domain.hosted_checkout_specific_output.HostedCheckoutSpecificOutput
-
payment_output
¶ - Object containing payment details
Type:
worldline.connect.sdk.v1.domain.payment_output.PaymentOutput
-
status
¶ - Current high-level status of the payment in a human-readable form. Possible values are :
- ACCOUNT_VERIFIED - The account has been verified using a validation services like 0$ auth
- CREATED - The transaction has been created. This is the initial state once a new payment is created.
- REDIRECTED - The customer has been redirected to a 3rd party to complete the authentication/payment
- PENDING_PAYMENT - Instructions have been provided and we are now waiting for the money to come in
- PENDING_FRAUD_APPROVAL - The transaction has been marked for manual review after an automatic fraud screening
- PENDING_APPROVAL - The transaction is awaiting approval from you to proceed with the capturing of the funds
- PENDING_COMPLETION - The transaction needs to be completed.
- PENDING_CAPTURE - The transaction is waiting for you to request one or more captures of the funds.
- REJECTED - The transaction has been rejected
- AUTHORIZATION_REQUESTED - we have requested an authorization against an asynchronous system and is awaiting its response
- CAPTURE_REQUESTED - The transaction is in the queue to be captured
- CAPTURED - The transaction has been captured and we have received online confirmation
- PAID - We have matched the incoming funds to the transaction
- CANCELLED - You have cancelled the transaction
- REJECTED_CAPTURE - We or one of our downstream acquirers/providers have rejected the capture request
- REVERSED - The transaction has been reversed
- CHARGEBACK_NOTIFICATION - We have received a notification of chargeback and this status informs you that your account will be debited for a particular transaction
- CHARGEBACKED - The transaction has been chargebacked
- REFUNDED - The transaction has been refunded
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_output
¶ - This object has the numeric representation of the current payment status, timestamp of last status change and performable action on the current payment resource.In case of failed payments and negative scenarios, detailed error information is listed.
Type:
worldline.connect.sdk.v1.domain.payment_status_output.PaymentStatusOutput
-
-
class
worldline.connect.sdk.v1.domain.payment_account_on_file.
PaymentAccountOnFile
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information on the payment account data on file (tokens)-
create_date
¶ - The date (YYYYMMDD) when the payment account on file was first created.In case a token is used for the transaction we will use the creation date of the token in our system in case you leave this property empty.
Type: str
-
number_of_card_on_file_creation_attempts_last24_hours
¶ - Number of attempts made to add new card to the customer account in the last 24 hours
Type: int
-
-
class
worldline.connect.sdk.v1.domain.payment_approval_response.
PaymentApprovalResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card_payment_method_specific_output
¶ - Object containing additional card payment method specific details
-
mobile_payment_method_specific_output
¶ - Object containing additional mobile payment method specific details
-
payment
¶ - Object that holds the payment data
-
payment_method_specific_output
¶ - Object containing additional payment method specific detailsDeprecated: this property does not support different outputs for payment methods other than cards. Please use cardPaymentMethodSpecificOutput instead.
Deprecated; Use cardPaymentMethodSpecificOutput instead
-
-
class
worldline.connect.sdk.v1.domain.payment_context.
PaymentContext
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Values that can optionally be set to refine an IIN Lookup-
amount_of_money
¶ - The payment amount
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
country_code
¶ - The country the payment takes place in
Type: str
-
is_installments
¶ - True if the payment is to be paid in multiple installments (numberOfInstallments > 1 for the payment). When true only payment products that support installments will be allowed in context.
Type: bool
-
is_recurring
¶ - True if the payment is recurring
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.payment_creation_output.
PaymentCreationOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.payment_creation_references.PaymentCreationReferences
-
is_checked_remember_me
¶ - Indicates whether the customer ticked the “Remember my details for future purchases” checkbox on the MyCheckout hosted payment pages
Type: bool
-
is_new_token
¶ - Indicates if a new token was created
- true - A new token was created
- false - A token with the same card number already exists and is returned. Please note that the existing token has not been updated. When you want to update other data then the card number, you need to update data stored in the token explicitly, as data is never updated during the creation of a token.
Type: bool
-
token
¶ - ID of the token
Type: str
-
tokenization_succeeded
¶ - Indicates if tokenization was successful or not. If this value is false, then the token and isNewToken properties will not be set.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.payment_creation_references.
PaymentCreationReferences
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
additional_reference
¶ - The additional reference identifier for this transaction. Data in this property will also be returned in our report files, allowing you to reconcile them.
Type: str
-
external_reference
¶ - The external reference identifier for this transaction. Data in this property will also be returned in our report files, allowing you to reconcile them.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_error_response.
PaymentErrorResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
error_id
¶ - Unique reference, for debugging purposes, of this error response
Type: str
-
errors
¶ - List of one or more errors
Type: list[
worldline.connect.sdk.v1.domain.api_error.APIError
]
-
payment_result
¶ - Object that contains details on the created payment in case one has been created
Type:
worldline.connect.sdk.v1.domain.create_payment_result.CreatePaymentResult
-
-
class
worldline.connect.sdk.v1.domain.payment_output.
PaymentOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.order_output.OrderOutput
-
amount_paid
¶ - Amount that has been paid
Type: long
-
amount_reversed
¶ - Amount that has been reversed
Type: long
-
bank_transfer_payment_method_specific_output
¶ - Object containing the bank transfer payment method details
-
card_payment_method_specific_output
¶ - Object containing the card payment method details
Type:
worldline.connect.sdk.v1.domain.card_payment_method_specific_output.CardPaymentMethodSpecificOutput
-
cash_payment_method_specific_output
¶ - Object containing the cash payment method details
Type:
worldline.connect.sdk.v1.domain.cash_payment_method_specific_output.CashPaymentMethodSpecificOutput
-
direct_debit_payment_method_specific_output
¶ - Object containing the non SEPA direct debit payment method details
-
e_invoice_payment_method_specific_output
¶ - Object containing the e-invoice payment method details
-
invoice_payment_method_specific_output
¶ - Object containing the invoice payment method details
-
mobile_payment_method_specific_output
¶ - Object containing the mobile payment method details
-
payment_method
¶ - Payment method identifier used by the our payment engine with the following possible values:
- bankRefund
- bankTransfer
- card
- cash
- directDebit
- eInvoice
- invoice
- redirect
Type: str
-
redirect_payment_method_specific_output
¶ - Object containing the redirect payment product details
-
reversal_reason
¶ - The reason description given for the reversedAmount property.
Type: str
-
sepa_direct_debit_payment_method_specific_output
¶ - Object containing the SEPA direct debit details
-
-
class
worldline.connect.sdk.v1.domain.payment_product.
PaymentProduct
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
accounts_on_file
¶ - List of tokens for that payment product
Type: list[
worldline.connect.sdk.v1.domain.account_on_file.AccountOnFile
]
-
acquirer_country
¶ - ISO 3166-1 alpha-2 country code which indicates the most likely country code of the acquirer that will process the transaction. For Google Pay (paymentProductId 320) transactions this acquirerCountry is should be provided in the https://developers.google.com/pay/api/web/guides/resources/sca <https://developers.google.com/pay/api/web/reference/request-objects#TransactionInfo>
Type: str
-
allows_installments
¶ - Indicates if the product supports installments
- true - This payment supports installments
- false - This payment does not support installments
Type: bool
-
allows_recurring
¶ - Indicates if the product supports recurring payments
- true - This payment product supports recurring payments
- false - This payment product does not support recurring transactions and can only be used for one-off payments
Type: bool
-
allows_tokenization
¶ - Indicates if the payment details can be tokenized for future re-use
- true - Payment details from payments done with this payment product can be tokenized for future re-use
- false - Payment details from payments done with this payment product can not be tokenized
Type: bool
-
authentication_indicator
¶ - Indicates if the payment product supports 3D Security (mandatory, optional or not needed).
Type:
worldline.connect.sdk.v1.domain.authentication_indicator.AuthenticationIndicator
-
auto_tokenized
¶ - Indicates if the payment details can be automatically tokenized for future re-use
- true - Payment details from payments done with this payment product can be automatically tokenized for future re-use
- false - Payment details from payments done with this payment product can not be automatically tokenized
Type: bool
-
can_be_iframed
¶ - This property is only relevant for payment products that use third party redirects. This property indicates if the third party disallows their payment pages to be embedded in an iframe using the X-Frame-Options header.
- true - the third party allows their payment pages to be embedded in an iframe.
- false - the third party disallows their payment pages to be embedded in an iframe.
Type: bool
-
device_fingerprint_enabled
¶ - Indicates if device fingerprint is enabled for the product
- true
- false
Type: bool
-
display_hints
¶ - Object containing display hints like the order in which the product should be shown, the name of the product and the logo
Type:
worldline.connect.sdk.v1.domain.payment_product_display_hints.PaymentProductDisplayHints
-
fields
¶ - Object containing all the fields and their details that are associated with this payment product. If you are not interested in the data in the fields you should have us filter them out (using filter=fields in the query-string)
Type: list[
worldline.connect.sdk.v1.domain.payment_product_field.PaymentProductField
]
-
fields_warning
¶ - If one or more of the payment product fields could not be constructed, no payment product fields will be returned and a message will be present in this property stating why.
Type: str
-
id
¶ - The ID of the payment product in our system
Type: int
-
is_authentication_supported
¶ - Indicates if the payment product supports 3D-Secure.
Type: bool
-
is_java_script_required
¶ - This property indicates if the payment product requires JavaScript to be enabled on the customer’s browser. This is usually only true if the payment product depends on a third party JavaScript integration.
- true - the payment product requires JavaScript to be enabled.
- false - the payment product does not require JavaScript to be enabled. This is the default value if the property is not present.
Type: bool
-
max_amount
¶ - Maximum amount in cents (using 2 decimals, so 1 EUR becomes 100 cents) for transactions done with this payment product
Type: long
-
min_amount
¶ - Minimum amount in cents (using 2 decimals, so 1 EUR becomes 100 cents) for transactions done with this payment product
Type: long
-
mobile_integration_level
¶ - This provides insight into the level of support for payments using a device with a smaller screen size. You can for instance use this to rank payment products differently on devices with a smaller screen. Possible values are:
- NO_SUPPORT - The payment product does not work at all on a mobile device
- BASIC_SUPPORT - The payment product has not optimized its user experience for devices with smaller screens
- OPTIMISED_SUPPORT - The payment product offers a user experience that has been optimized for devices with smaller screens
Type: str
-
payment_method
¶ - Indicates which payment method will be used for this payment product. Payment method is one of:
- bankTransfer
- card
- cash
- directDebit
- eInvoice
- invoice
- redirect
Type: str
-
payment_product302_specific_data
¶ - Apple Pay (payment product 302) specific details.
Type:
worldline.connect.sdk.v1.domain.payment_product302_specific_data.PaymentProduct302SpecificData
-
payment_product320_specific_data
¶ - Google Pay (payment product 320) specific details.
Type:
worldline.connect.sdk.v1.domain.payment_product320_specific_data.PaymentProduct320SpecificData
-
payment_product863_specific_data
¶ - WeChat Pay (payment product 863) specific details.
Type:
worldline.connect.sdk.v1.domain.payment_product863_specific_data.PaymentProduct863SpecificData
-
payment_product_group
¶ - The payment product group that has this payment product, if there is any. Not populated otherwise. Currently only one payment product group is supported:
- cards
Type: str
-
supports_mandates
¶ - Indicates whether the payment product supports mandates.
Type: bool
-
uses_redirection_to3rd_party
¶ - Indicates whether the payment product requires redirection to a third party to complete the payment. You can use this to filter out products that require a redirect if you don’t want to support that.
- true - Redirection is required
- false - No redirection is required
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.payment_product302_specific_data.
PaymentProduct302SpecificData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
networks
¶ - The networks that can be used in the current payment context. The strings that represent the networks in the array are identical to the strings that Apple uses in their documentation <https://developer.apple.com/reference/passkit/pkpaymentnetwork>.For instance: “Visa”.
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.payment_product3201_specific_output.
PaymentProduct3201SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card
¶ - Object containing card details
Type:
worldline.connect.sdk.v1.domain.card_essentials.CardEssentials
-
-
class
worldline.connect.sdk.v1.domain.payment_product320_specific_data.
PaymentProduct320SpecificData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
gateway
¶ - The GlobalCollect gateway identifier. You should use this when creating a tokenization specification <https://developers.google.com/pay/api/android/reference/object#Gateway>.
Type: str
-
networks
¶ - The networks that can be used in the current payment context. The strings that represent the networks in the array are identical to the strings that Google uses in their documentation <https://developers.google.com/pay/api/android/reference/object#CardParameters>.For instance: “VISA”.
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.payment_product771_specific_output.
PaymentProduct771SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mandate_reference
¶ - Unique reference to a Mandate
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product806_specific_output.
PaymentProduct806SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
billing_address
¶ - Object containing the billing address details of the customer
-
customer_account
¶ - Object containing the account details
Type:
worldline.connect.sdk.v1.domain.trustly_bank_account.TrustlyBankAccount
-
-
class
worldline.connect.sdk.v1.domain.payment_product836_specific_output.
PaymentProduct836SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
security_indicator
¶ - Indicates if SofortBank could estabilish if the transaction could successfully be processed.
- 0 - You should wait for the transaction to be reported as paid before shipping any goods.
- 1 - You can ship the goods. In case the transaction is not reported as paid you can initiate a claims process with SofortBank.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product840_customer_account.
PaymentProduct840CustomerAccount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
PayPal account details as returned by PayPal-
account_id
¶ - Username with which the PayPal account holder has registered at PayPal
Type: str
-
billing_agreement_id
¶ - Identification of the PayPal recurring billing agreement
Type: str
-
company_name
¶ - Name of the company in case the PayPal account is owned by a business
Type: str
-
contact_phone
¶ - The phone number of the PayPal account holder
Type: str
-
country_code
¶ - Country where the PayPal account is located
Type: str
-
customer_account_status
¶ - Status of the PayPal account.Possible values are:
- verified - PayPal has verified the funding means for this account
- unverified - PayPal has not verified the funding means for this account
Type: str
-
customer_address_status
¶ - Status of the customer’s shipping address as registered by PayPalPossible values are:
- none - Status is unknown at PayPal
- confirmed - The address has been confirmed
- unconfirmed - The address has not been confirmed
Type: str
-
first_name
¶ - First name of the PayPal account holder
Type: str
-
payer_id
¶ - The unique identifier of a PayPal account and will never change in the life cycle of a PayPal account
Type: str
-
surname
¶ - Surname of the PayPal account holder
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product840_specific_output.
PaymentProduct840SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
billing_address
¶ - Object containing the billing address details of the customer
-
customer_account
¶ - Object containing the details of the PayPal account
Type:
worldline.connect.sdk.v1.domain.payment_product840_customer_account.PaymentProduct840CustomerAccount
-
customer_address
¶ - Object containing the address details of the customer
-
protection_eligibility
¶ - Protection Eligibility data of the PayPal customer
Type:
worldline.connect.sdk.v1.domain.protection_eligibility.ProtectionEligibility
-
-
class
worldline.connect.sdk.v1.domain.payment_product863_specific_data.
PaymentProduct863SpecificData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
integration_types
¶ - The WeChat Pay integration types that can be used in the current payment context. Possible values:
- desktopQRCode - used on desktops, the customer opens the WeChat app by scanning a QR code.
- urlIntent - used in mobile apps or on mobile web pages, the customer opens the WeChat app using a URL intent.
- nativeInApp - used in mobile apps that use the WeChat Pay SDK.
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.payment_product863_third_party_data.
PaymentProduct863ThirdPartyData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
app_id
¶ - The appId to use in third party calls to WeChat.
Type: str
-
nonce_str
¶ - The nonceStr to use in third party calls to WeChat
Type: str
-
package_sign
¶ - The packageSign to use in third party calls to WeChat
Type: str
-
pay_sign
¶ - The paySign to use in third party calls to WeChat
Type: str
-
prepay_id
¶ - The prepayId to use in third party calls to WeChat.
Type: str
-
sign_type
¶ - The signType to use in third party calls to WeChat
Type: str
-
time_stamp
¶ - The timeStamp to use in third party calls to WeChat
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product_display_hints.
PaymentProductDisplayHints
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
display_order
¶ - Determines the order in which the payment products and groups should be shown (sorted ascending)
Type: int
-
label
¶ - Name of the field based on the locale that was included in the request
Type: str
-
logo
¶ - Partial URL that you can reference for the image of this payment product. You can use our server-side resize functionality by appending ‘?size={{width}}x{{height}}’ to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field.
PaymentProductField
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
data_restrictions
¶ - Object containing data restrictions that apply to this field, like minimum and/or maximum length
-
display_hints
¶ - Object containing display hints for this field, like the order, mask, preferred keyboard
Type:
worldline.connect.sdk.v1.domain.payment_product_field_display_hints.PaymentProductFieldDisplayHints
-
id
¶ - The ID of the field
Type: str
-
type
¶ - The type of field, possible values are:
- string - Any UTF-8 chracters
- numericstring - A string that consisting only of numbers. Note that you should strip out anything that is not a digit, but leading zeros are allowed
- date - Date in the format DDMMYYYY
- expirydate - Expiration date in the format MMYY
- integer - An integer
- boolean - A boolean
Type: str
-
used_for_lookup
¶ - Indicates that the product can be used in a get customer details <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/customerDetails.html> call and that when that call is done the field should be supplied as (one of the) key(s) with a valid value.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_data_restrictions.
PaymentProductFieldDataRestrictions
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
is_required
¶ - true - Indicates that this field is required
- false - Indicates that this field is optional
Type: bool
-
validators
¶ - Object containing the details of the validations on the field
Type:
worldline.connect.sdk.v1.domain.payment_product_field_validators.PaymentProductFieldValidators
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_display_element.
PaymentProductFieldDisplayElement
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
id
¶ - The ID of the display element.
Type: str
-
label
¶ - The label of the display element.
Type: str
-
type
¶ - The type of the display element. Indicates how the value should be presented. Possible values are:
- STRING - as plain text
- CURRENCY - as an amount in cents displayed with a decimal separator and the currency of the payment
- PERCENTAGE - as a number with a percentage sign
- INTEGER - as an integer
- URI - as a link
Type: str
-
value
¶ - the value of the display element.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_display_hints.
PaymentProductFieldDisplayHints
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
always_show
¶ - true - Indicates that this field is advised to be captured to increase the success rates even though it isn’t marked as required. Please note that making the field required could hurt the success rates negatively. This boolean only indicates our advise to always show this field to the customer.
- false - Indicates that this field is not to be shown unless it is a required field.
Type: bool
-
display_order
¶ - The order in which the fields should be shown (ascending)
Type: int
-
form_element
¶ - Object detailing the type of form element that should be used to present the field
Type:
worldline.connect.sdk.v1.domain.payment_product_field_form_element.PaymentProductFieldFormElement
-
label
¶ - Label/Name of the field to be used in the user interface
Type: str
-
link
¶ - Link that should be used to replace the ‘{link}’ variable in the label.
Type: str
-
mask
¶ - A mask that can be used in the input field. You can use it to inject additional characters to provide a better user experience and to restrict the accepted character set (illegal characters to be ignored during typing).* is used for wildcards (and also chars)9 is used for numbersEverything outside {{ and }} is used as-is.
Type: str
-
obfuscate
¶ - true - The data in this field should be obfuscated as it is entered, just like a password field
- false - The data in this field does not need to be obfuscated
Type: bool
-
placeholder_label
¶ - A placeholder value for the form element
Type: str
-
preferred_input_type
¶ - The type of keyboard that can best be used to fill out the value of this field. Possible values are:
- PhoneNumberKeyboard - Keyboard that is normally used to enter phone numbers
- StringKeyboard - Keyboard that is used to enter strings
- IntegerKeyboard - Keyboard that is used to enter only numerical values
- EmailAddressKeyboard - Keyboard that allows easier entry of email addresses
Type: str
-
tooltip
¶ - Object that contains an optional tooltip to assist the customer
Type:
worldline.connect.sdk.v1.domain.payment_product_field_tooltip.PaymentProductFieldTooltip
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_form_element.
PaymentProductFieldFormElement
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
type
¶ - Type of form element to be used. The following types can be returned:
- text - A normal text input field
- list - A list of values that the customer needs to choose from, is detailed in the valueMapping array
- currency - Currency fields should be split into two fields, with the second one being specifically for the cents
- boolean - Boolean fields should offer the customer a choice, like accepting the terms and conditions of a product.
- date - let the customer pick a date.
Type: str
-
value_mapping
¶ - An array of values and displayNames that should be used to populate the list object in the GUI
Type: list[
worldline.connect.sdk.v1.domain.value_mapping_element.ValueMappingElement
]
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_tooltip.
PaymentProductFieldTooltip
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
image
¶ - Relative URL that can be used to retrieve an image for the tooltip image. You can use our server-side resize functionality by appending ‘?size={{width}}x{{height}}’ to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
Type: str
-
label
¶ - A text explaining the field in more detail. This is meant to be used for displaying to the customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product_field_validators.
PaymentProductFieldValidators
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
boleto_bancario_requiredness
¶ - Indicates the requiredness of the field based on the fiscalnumber for Boleto Bancario
-
email_address
¶ - Indicates that the content should be validated against the rules for an email address
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
expiration_date
¶ - Indicates that the content should be validated against the rules for an expiration date (it should be in the future)
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
fixed_list
¶ - Indicates that content should be one of the, in this object, listed items
Type:
worldline.connect.sdk.v1.domain.fixed_list_validator.FixedListValidator
-
iban
¶ - Indicates that the content of this (iban) field needs to validated against format checks and modulo check (as described in ISO 7064)
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
length
¶ - Indicates that the content needs to be validated against length criteria defined in this object
Type:
worldline.connect.sdk.v1.domain.length_validator.LengthValidator
-
luhn
¶ - Indicates that the content needs to be validated using a LUHN check
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
range
¶ - Indicates that the content needs to be validated against a, in this object, defined range
Type:
worldline.connect.sdk.v1.domain.range_validator.RangeValidator
-
regular_expression
¶ - A string representing the regular expression to check
Type:
worldline.connect.sdk.v1.domain.regular_expression_validator.RegularExpressionValidator
-
resident_id_number
¶ - Indicates that the content needs to be validated as per the Chinese resident identity number format
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
terms_and_conditions
¶ - Indicates that the content should be validated as such that the customer has accepted the field as if they were terms and conditions of a service
Type:
worldline.connect.sdk.v1.domain.empty_validator.EmptyValidator
-
-
class
worldline.connect.sdk.v1.domain.payment_product_filter.
PaymentProductFilter
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
groups
¶ - List containing all payment product groups that should either be restricted to in or excluded from the payment context. Currently, there is only one group, called ‘cards’.
Type: list[str]
-
products
¶ - List containing all payment product ids that should either be restricted to in or excluded from the payment context.
Type: list[int]
-
-
class
worldline.connect.sdk.v1.domain.payment_product_filters_client_session.
PaymentProductFiltersClientSession
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
exclude
¶ - Contains the payment product ids and payment product groups that should be excluded from the payment products available for the payment. Note that excluding a payment product will ensure exclusion, even if the payment product is also present in the restrictTo filter, and that excluding a payment product group will exclude all payment products that are a part of that group, even if one or more of them are present in the restrictTo filters.
Type:
worldline.connect.sdk.v1.domain.payment_product_filter.PaymentProductFilter
-
restrict_to
¶ - Contains the payment product ids and payment product groups that should be at most contained in the payment products available for completing the payment. Note that the list of payment products available for completing the payment will only contain payment products present in these filters, but not all payment products in these filters might be present in the list. Some of them might not be allowed in context or they might be present in the exclude filters.
Type:
worldline.connect.sdk.v1.domain.payment_product_filter.PaymentProductFilter
-
-
class
worldline.connect.sdk.v1.domain.payment_product_filters_hosted_checkout.
PaymentProductFiltersHostedCheckout
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
exclude
¶ - Contains the payment product ids and payment product groups that should be excluded from the payment products available for the payment. Note that excluding a payment product will ensure exclusion, even if the payment product is also present in the restrictTo filter, and that excluding a payment product group will exclude all payment products that are a part of that group, even if one or more of them are present in the restrictTo filters.
Type:
worldline.connect.sdk.v1.domain.payment_product_filter.PaymentProductFilter
-
restrict_to
¶ - Contains the payment product ids and payment product groups that should be at most contained in the payment products available for completing the payment. Note that the list of payment products available for completing the payment will only contain payment products present in these filters, but not all payment products in these filters might be present in the list. Some of them might not be allowed in context or they might be present in the exclude filters.
Type:
worldline.connect.sdk.v1.domain.payment_product_filter.PaymentProductFilter
-
tokens_only
¶ - true - The customer may only complete the payment using one of the provided accounts on file.
- false -The customer can complete the payment using any way they like, as long as it is allowed in the payment context. Default.
Note that the request must contain at least one valid account on file with an allowed payment product (not excluded and allowed in context) if this property is set to true, else the request will fail.Type: bool
-
-
class
worldline.connect.sdk.v1.domain.payment_product_group.
PaymentProductGroup
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Definition of the details of a single payment product group-
accounts_on_file
¶ - Only populated in the Client API
Type: list[
worldline.connect.sdk.v1.domain.account_on_file.AccountOnFile
]
-
allows_installments
¶ - Indicates if the product supports installments
- true - This payment supports installments
- false - This payment does not support installments
Type: bool
-
device_fingerprint_enabled
¶ - Indicates if device fingerprint is enabled for the product group
- true
- false
Type: bool
-
display_hints
¶ - Object containing display hints like the order of the group when shown in a list, the name of the group and the logo. Note that the order of the group is the lowest order among the payment products that belong to the group.
Type:
worldline.connect.sdk.v1.domain.payment_product_display_hints.PaymentProductDisplayHints
-
fields
¶ - Object containing all the fields and their details that are associated with this payment product group. If you are not interested in the these fields you can have us filter them out (using hide=fields in the query-string)
Type: list[
worldline.connect.sdk.v1.domain.payment_product_field.PaymentProductField
]
-
id
¶ - The ID of the payment product group in our system
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_product_group_response.
PaymentProductGroupResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.payment_product_group.PaymentProductGroup
-
class
worldline.connect.sdk.v1.domain.payment_product_groups.
PaymentProductGroups
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_groups
¶ - Array containing payment product groups and their characteristics
Type: list[
worldline.connect.sdk.v1.domain.payment_product_group.PaymentProductGroup
]
-
-
class
worldline.connect.sdk.v1.domain.payment_product_networks_response.
PaymentProductNetworksResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
networks
¶ - Array containing network entries for a payment product. The strings that represent the networks in the array are identical to the strings that the payment product vendors use in their documentation.For instance: “Visa” for Google Pay <https://developer.apple.com/reference/passkit/pkpaymentnetwork>.
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.payment_product_response.
PaymentProductResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.payment_product.PaymentProduct
-
class
worldline.connect.sdk.v1.domain.payment_products.
PaymentProducts
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_products
¶ - Array containing payment products and their characteristics
Type: list[
worldline.connect.sdk.v1.domain.payment_product.PaymentProduct
]
-
-
class
worldline.connect.sdk.v1.domain.payment_references.
PaymentReferences
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
merchant_order_id
¶ - Your order ID for this transaction that is also returned in our report files
Type: long
-
merchant_reference
¶ - Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
Type: str
-
payment_reference
¶ - Payment Reference generated by WebCollect
Type: str
-
provider_id
¶ - Provides an additional means of reconciliation for Gateway merchants
Type: str
-
provider_merchant_id
¶ - Provides an additional means of reconciliation, this is the MerchantId used at the provider
Type: str
-
provider_reference
¶ - Provides an additional means of reconciliation for Gateway merchants
Type: str
-
reference_orig_payment
¶ - When you did not supply a merchantReference for your payment, you need to fill this property with the reference of the original payment when you want to refund it
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payment_status_output.
PaymentStatusOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.order_status_output.OrderStatusOutput
- Indicates if the transaction has been authorized
- true
- false
Type: bool
-
is_refundable
¶ - Flag indicating if the payment can be refunded
- true
- false
Type: bool
-
three_d_secure_status
¶ - The 3D Secure status, with the following possible values:
- ENROLLED: the card is enrolled for 3D Secure authentication. The customer can be redirected to a 3D Secure access control server (ACS)
- NOT_ENROLLED: the card is not enrolled for 3D Secure authentication
- INVALID_PARES_OR_NOT_COMPLETED: the PARes is invalid, or the customer did not complete the 3D Secure authentication
- AUTHENTICATED: the customer has passed the 3D Secure authentication
- NOT_AUTHENTICATED: the customer failed the 3D Secure authentication
- NOT_PARTICIPATING: the cardholder has not set up their card for 2-step 3D Secure.
Note that this status will only be set for payments that make use of 2-step 3D Secure.Type: str
-
class
worldline.connect.sdk.v1.domain.payout_customer.
PayoutCustomer
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
address
¶ - Object containing address details
-
company_information
¶ - Object containing company information
Type:
worldline.connect.sdk.v1.domain.company_information.CompanyInformation
-
contact_details
¶ - Object containing contact details like email address and phone number
Type:
worldline.connect.sdk.v1.domain.contact_details_base.ContactDetailsBase
-
merchant_customer_id
¶ - Your identifier for the customer. It can be used as a search criteria in the GlobalCollect Payment Console and is also included in the GlobalCollect report files. It is used in the fraud-screening process for payments on the Ogone Payment Platform.
Type: str
-
name
¶ - Object containing PersonalName object
Type:
worldline.connect.sdk.v1.domain.personal_name.PersonalName
-
-
class
worldline.connect.sdk.v1.domain.payout_details.
PayoutDetails
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
customer
¶ - Object containing the details of the customer.
Type:
worldline.connect.sdk.v1.domain.payout_customer.PayoutCustomer
-
references
¶ - Object that holds all reference properties that are linked to this transaction
Type:
worldline.connect.sdk.v1.domain.payout_references.PayoutReferences
-
-
class
worldline.connect.sdk.v1.domain.payout_error_response.
PayoutErrorResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
error_id
¶ - Unique reference, for debugging purposes, of this error response
Type: str
-
errors
¶ - List of one or more errors
Type: list[
worldline.connect.sdk.v1.domain.api_error.APIError
]
-
payout_result
¶ - Object that contains details on the created payout in case one has been created
Type:
worldline.connect.sdk.v1.domain.payout_result.PayoutResult
-
-
class
worldline.connect.sdk.v1.domain.payout_merchant.
PayoutMerchant
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
configuration_id
¶ - In case your account has been setup with multiple configurations you can use this property to identify the one you would like to use for the transaction. Note that you can only submit preconfigured values in combination with the Worldline Online Payments Acceptance platform. In case no value is supplied a default value of 0 will be submitted to the Worldline Online Payments Acceptance platform. The Worldline Online Payments Acceptance platform internally refers to this as a PosId.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payout_recipient.
PayoutRecipient
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing the details of the recipient of the payout-
first_name
¶ - Given name(s) or first name(s) of the customer
Type: str
-
surname
¶ - Surname(s) or last name(s) of the customer
Type: str
-
surname_prefix
¶ - Middle name - In between first name and surname - of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payout_references.
PayoutReferences
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
invoice_number
¶ - Your invoice number (on printed invoice) that is also returned in our report files
Type: str
-
merchant_order_id
¶ - Order Identifier generated by the merchantNote: This does not need to have a unique value for each transaction
Type: long
-
merchant_reference
¶ - Note that the maximum length of this field for transactions processed on the GlobalCollect platform is 30. Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.payout_response.
PayoutResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.payout_result.PayoutResult
-
class
worldline.connect.sdk.v1.domain.payout_result.
PayoutResult
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_order_status.AbstractOrderStatus
-
payout_output
¶ - Object containing payout details
Type:
worldline.connect.sdk.v1.domain.order_output.OrderOutput
-
status
¶ - Current high-level status of the payouts in a human-readable form. Possible values are :
- CREATED - The transaction has been created. This is the initial state once a new payout is created.
- PENDING_APPROVAL - The transaction is awaiting approval from you to proceed with the paying out of the funds
- REJECTED - The transaction has been rejected
- PAYOUT_REQUESTED - The transaction is in the queue to be payed out to the customer
- ACCOUNT_CREDITED - We have successfully credited the customer
- REJECTED_CREDIT - The credit to the account of the customer was rejected by the bank
- CANCELLED - You have cancelled the transaction
- REVERSED - The payout has been reversed and the money is returned to your balance
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_output
¶ - This object has the numeric representation of the current payout status, timestamp of last status change and performable action on the current payout resource.In case of a rejected payout, detailed error information is listed.
Type:
worldline.connect.sdk.v1.domain.order_status_output.OrderStatusOutput
-
-
class
worldline.connect.sdk.v1.domain.personal_identification.
PersonalIdentification
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
id_issuing_country_code
¶ - ISO 3166-1 alpha-2 country code of the country that issued the identification document
Type: str
-
id_type
¶ - Indicates the type of identification
- nationalIdentification = The provided idValue is a national identification number.
- passportNumber = The provided idValue is a passport number.
- driverLicense = The provided idValue is driving License of the individual.
- companyRegistrationNumber = The provided idValue is a company identifier. It verifies its legal existence as an incorporated entity.
- socialSecurityNumber =n The provided idValue is a social security number, issued to an individual by the individual’s government.
- alienRegistrationNumber = The provided idValue is an alien registration number, provided by immigration services of a country.
- lawEnforcementIdentification = The provided idValue is an alien registration number, provided by immigration services of a country.
- militaryIdentification = The provided idValue is an identification issued to military personnel of a country.
Type: str
-
id_value
¶ - The value of the identification
Type: str
-
-
class
worldline.connect.sdk.v1.domain.personal_information.
PersonalInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
date_of_birth
¶ - The date of birth of the customerFormat: YYYYMMDD
Type: str
-
gender
¶ - The gender of the customer, possible values are:
- male
- female
- unknown or empty
Type: str
-
identification
¶ - Object containing identification documents information
Type:
worldline.connect.sdk.v1.domain.personal_identification.PersonalIdentification
-
name
¶ - Object containing the name details of the customer
Type:
worldline.connect.sdk.v1.domain.personal_name.PersonalName
-
-
class
worldline.connect.sdk.v1.domain.personal_information_risk_assessment.
PersonalInformationRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
name
¶ - Object containing the name details of the customer
Type:
worldline.connect.sdk.v1.domain.personal_name_risk_assessment.PersonalNameRiskAssessment
-
-
class
worldline.connect.sdk.v1.domain.personal_information_token.
PersonalInformationToken
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
name
¶ - Given name(s) or first name(s) of the customer
Type:
worldline.connect.sdk.v1.domain.personal_name_token.PersonalNameToken
-
-
class
worldline.connect.sdk.v1.domain.personal_name.
PersonalName
[source]¶ Bases:
worldline.connect.sdk.v1.domain.personal_name_base.PersonalNameBase
-
title
¶ - Title of customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.personal_name_base.
PersonalNameBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
first_name
¶ - Given name(s) or first name(s) of the customer
Type: str
-
surname
¶ Type: str
-
surname_prefix
¶ - Middle name - In between first name and surname - of the customer
Type: str
-
-
class
worldline.connect.sdk.v1.domain.personal_name_risk_assessment.
PersonalNameRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.v1.domain.personal_name_base.PersonalNameBase
-
class
worldline.connect.sdk.v1.domain.personal_name_token.
PersonalNameToken
[source]¶ Bases:
worldline.connect.sdk.v1.domain.personal_name_base.PersonalNameBase
-
class
worldline.connect.sdk.v1.domain.protection_eligibility.
ProtectionEligibility
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
eligibility
¶ - Possible values:
- Eligible
- PartiallyEligible
- Ineligible
Type: str
-
type
¶ - Possible values:
- ItemNotReceivedEligible
- UnauthorizedPaymentEligible
- Ineligible
Type: str
-
-
class
worldline.connect.sdk.v1.domain.range_validator.
RangeValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
max_value
¶ - Upper value of the range that is still valid
Type: int
-
min_value
¶ - Lower value of the range that is still valid
Type: int
-
-
class
worldline.connect.sdk.v1.domain.recurring_payments_data.
RecurringPaymentsData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
The object containing reference data for the text that can be displayed on MyCheckout hosted payment page with subscription information.Note:The data in this object is only meant for displaying recurring payments-related data on your checkout page.You still need to submit all the recurring payment-related data in the corresponding payment product-specific input. (example: cardPaymentMethodSpecificInput.recurring and cardPaymentMethodSpecificInput.isRecurring)-
recurring_interval
¶ - The object containing the frequency and interval between recurring payments.
-
trial_information
¶ - The object containing data of the trial period: no-cost or discounted time-constrained trial subscription period.
Type:
worldline.connect.sdk.v1.domain.trial_information.TrialInformation
-
-
class
worldline.connect.sdk.v1.domain.redirect_data.
RedirectData
[source]¶ Bases:
worldline.connect.sdk.v1.domain.redirect_data_base.RedirectDataBase
-
class
worldline.connect.sdk.v1.domain.redirect_data_base.
RedirectDataBase
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
redirect_url
¶ Type: str
-
returnmac
¶ Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_method_specific_input.
RedirectPaymentMethodSpecificInput
[source]¶ -
-
is_recurring
¶ - true
- false
Type: bool
-
payment_product4101_specific_input
¶ - Object containing specific input required for UPI (Payment product ID 4101)
-
payment_product809_specific_input
¶ - Object containing specific input required for Dutch iDeal payments (Payment product ID 809)
-
payment_product840_specific_input
¶ - Object containing specific input required for PayPal payments (Payment product ID 840)
-
payment_product861_specific_input
¶ - Object containing specific input required for AliPay payments (Payment product ID 861)
-
payment_product863_specific_input
¶ - Object containing specific input required for We Chat Pay payments (Payment product ID 863)
-
payment_product869_specific_input
¶ - Object containing specific input required for China UnionPay payments (Payment product ID 869)
-
payment_product882_specific_input
¶ - Object containing specific input required for Indian Net Banking payments (Payment product ID 882)
-
redirection_data
¶ - Object containing browser specific redirection related data
Type:
worldline.connect.sdk.v1.domain.redirection_data.RedirectionData
-
return_url
¶ - The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
Deprecated; Use redirectionData.returnUrl instead
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_method_specific_input_base.
RedirectPaymentMethodSpecificInputBase
[source]¶ -
-
payment_product4101_specific_input
¶ - Object containing specific input required for payment product 4101 (UPI)
-
payment_product840_specific_input
¶ - Object containing specific input required for PayPal payments (Payment product ID 840)
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_method_specific_output.
RedirectPaymentMethodSpecificOutput
[source]¶ -
-
bank_account_bban
¶ - Object that holds the Basic Bank Account Number (BBAN) data
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_account_iban
¶ - Object containing account holder name and IBAN information
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
bic
¶ - The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank or even branch. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code.
Type: str
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
payment_product3201_specific_output
¶ - PostFinance Card (payment product 3201) specific details
Type:
worldline.connect.sdk.v1.domain.payment_product3201_specific_output.PaymentProduct3201SpecificOutput
-
payment_product806_specific_output
¶ - Trustly (payment product 806) specific details
Type:
worldline.connect.sdk.v1.domain.payment_product806_specific_output.PaymentProduct806SpecificOutput
-
payment_product836_specific_output
¶ - Sofort (payment product 836) specific details
Type:
worldline.connect.sdk.v1.domain.payment_product836_specific_output.PaymentProduct836SpecificOutput
-
payment_product840_specific_output
¶ - PayPal (payment product 840) specific details
Type:
worldline.connect.sdk.v1.domain.payment_product840_specific_output.PaymentProduct840SpecificOutput
-
token
¶ - ID of the token. This property is populated when the payment was done with a token or when the payment was tokenized.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product4101_specific_input.
RedirectPaymentProduct4101SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Please find below specific input fields for payment product 4101 (UPI)-
display_name
¶ - The merchant name as shown to the customer in some payment applications.
Type: str
-
integration_type
¶ - The value of this property must be ‘vpa’, ‘desktopQRCode’, or ‘urlIntent’.
Type: str
-
virtual_payment_address
¶ - The Virtual Payment Address (VPA) of the customer. The ‘+’ character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product4101_specific_input_base.
RedirectPaymentProduct4101SpecificInputBase
[source]¶ -
Please find below specific input fields for payment product 4101 (UPI)
-
display_name
¶ - The merchant name as shown to the customer in some payment applications.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product809_specific_input.
RedirectPaymentProduct809SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Please find below specific input fields for payment product 809 (iDeal)-
expiration_period
¶ - This sets the maximum amount of minutes a customer has to complete the payment at the bank. After this period has expired it is impossible for the customer to make a payment and in case no payment has been made the transaction will be marked as unsuccessful and expired by the bank. Setting the expirationPeriod is convenient if you want to maximise the time a customer has to complete the payment. Please note that it is normal for a customer to take up to 5 minutes to complete a payment. Setting this value below 10 minutes is not advised.You can set this value in minutes with a maximum value of 60 minutes. If no input is provided the default value of 60 is used for the transaction.
Type: str
Deprecated; Use RedirectPaymentMethodSpecificInput.expirationPeriod instead
-
issuer_id
¶ - ID of the issuing bank of the customer. A list of available issuerIDs can be obtained by using the retrieve payment product directory API.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product840_specific_input.
RedirectPaymentProduct840SpecificInput
[source]¶ -
Please find below specific input fields for payment product 840 (PayPal)
-
custom
¶ - A free text string that you can send to PayPal. With a special agreement between PayPal and you, PayPal uses the data in that property, for custom services they offer to you.
Type: str
Deprecated; Use Order.references.descriptor instead
-
is_shortcut
¶ - Deprecated: If your PayPal payments are processed by Worldline’s Ogone Payment Platform, please use the property addressSelectionAtPayPal instead.Indicates whether to use PayPal Express Checkout for payments processed by Worldline’s GlobalCollect Payment Platform.
- true = PayPal Express Checkout
- false = Regular PayPal payment
For payments processed by Worldline’s Ogone Payment Platform, please see the addressSelectionAtPayPal property for more information.Type: bool
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product840_specific_input_base.
RedirectPaymentProduct840SpecificInputBase
[source]¶ -
Please find below the specific input field for payment product 840 (PayPal)
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product861_specific_input.
RedirectPaymentProduct861SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
mobile_device
¶ - This indicates that a customer is on a mobile device and it is used to distinguish whether a customer should be redirected to AliPay Desktop or Mobile. Alternatively, if you cannot determine whether a customer is on a mobile device or not, a customer can be redirected to AliPay Mobile if the property CreatePaymentRequest.order.customer.device.userAgent is supplied.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product863_specific_input.
RedirectPaymentProduct863SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
integration_type
¶ - The type of integration with WeChat. Possible values:
- desktopQRCode - used on desktops, the customer opens the WeChat app by scanning a QR code.
- urlIntent - used in mobile apps or on mobile web pages, the customer opens the WeChat app using a URL intent.
- nativeInApp - used in mobile apps that use the WeChat Pay SDK.
- javaScriptAPI - used for WeChat official accounts. Requires the QQ browser to function.
- miniProgram - used for Mini Programs.
Type: str
-
open_id
¶ - An openId of a customer.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product869_specific_input.
RedirectPaymentProduct869SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
issuer_id
¶ - ID of the issuing bank of the customer. A list of available issuerIDs can be obtained by using the retrieve payment product directory API.
Type: str
-
resident_id_name
¶ - The name as described on the Resident Identity Card of the People’s Republic of China.
Type: str
-
resident_id_number
¶ - The identification number as described on the Resident Identity Card of the People’s Republic of China.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirect_payment_product882_specific_input.
RedirectPaymentProduct882SpecificInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Please find below specific input fields for payment product 882 (Net Banking)-
issuer_id
¶ - ID of the issuing bank of the customer. A list of available issuerIDs can be obtained by using the retrieve payment product directory API.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.redirection_data.
RedirectionData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing browser specific redirection related data-
return_url
¶ - The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process.Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of protocol://. This protocol must be registered on the device first.URLs without a protocol will be rejected.
Type: str
-
variant
¶ - Using the Configuration Center it is possible to create multiple variations of your MyCheckout payment pages. The redirection flow for 3-D Secure uses the MyCheckout payment pages to display the following types of pages:
- Redirection page - All redirection using a POST method will load a page in the browser of the customer that performs the actual redirection. This page contains a message to the customer explaining what is happening.
- MethodURL page - Certain Issuers will use a specific flow in case of 3-D Secure version 2 to directly collect information from the customer browser. This page contains a spinner indicating that this process is going on in.
By specifying a specific variant you can force the use of another variant than the default. This allows you to test out the effect of certain changes to your MyCheckout payment pages in a controlled manner. Please note that you need to specify the ID instead of the name of the variant.Note: In case you have defined a Dynamic 3D Secure rule that takes the variant into account this will only work if you explicitly specify the ID using this property.Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_bank_method_specific_output.
RefundBankMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
-
class
worldline.connect.sdk.v1.domain.refund_card_method_specific_output.
RefundCardMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
- Card Authorization code as returned by the acquirer
Type: str
-
card
¶ - Object containing card details
Type:
worldline.connect.sdk.v1.domain.card_essentials.CardEssentials
-
class
worldline.connect.sdk.v1.domain.refund_cash_method_specific_output.
RefundCashMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
-
class
worldline.connect.sdk.v1.domain.refund_customer.
RefundCustomer
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
address
¶ - Object containing address details
Type:
worldline.connect.sdk.v1.domain.address_personal.AddressPersonal
-
company_information
¶ - Object containing company information
Type:
worldline.connect.sdk.v1.domain.company_information.CompanyInformation
-
contact_details
¶ - Object containing contact details like email address and phone number
Type:
worldline.connect.sdk.v1.domain.contact_details_base.ContactDetailsBase
-
fiscal_number
¶ - The fiscal registration number of the customer or the tax registration number of the company in case of a business customer. Please find below specifics per country:
- Argentina - Consumer (DNI) with a length of 7 or 8 digits
- Argentina - Company (CUIT) with a length of 11 digits
- Brazil - Consumer (CPF) with a length of 11 digits
- Brazil - Company (CNPJ) with a length of 14 digits
- Chile - Consumer (RUT) with a length of 9 digits
- Colombia - Consumer (NIT) with a length of 8, 9 or 10 digits
- Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
- Dominican Republic - Consumer (RNC) with a length of 11 digits
- Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU)) with a length of 11 characters
- India - Consumer (PAN) with a length of 10 characters
- Mexico - Consumer (RFC) with a length of 13 digits
- Mexico - Company (RFC) with a length of 12 digits
- Norway - Consumer (fødselsnummer) with a length of 11 digits
- Peru - Consumer (RUC) with a length of 11 digits
- Sweden - Consumer (personnummer) with a length of 10 or 12 digits
- Uruguay - Consumer (CI) with a length of 8 digits
- Uruguay - Consumer (NIE) with a length of 9 digits
- Uruguay - Company (RUT) with a length of 12 digits
Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_e_invoice_method_specific_output.
RefundEInvoiceMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
-
class
worldline.connect.sdk.v1.domain.refund_e_wallet_method_specific_output.
RefundEWalletMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
-
payment_product840_specific_output
¶ - PayPal (payment product 840) specific details
-
-
class
worldline.connect.sdk.v1.domain.refund_error_response.
RefundErrorResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
error_id
¶ - Unique reference, for debugging purposes, of this error response
Type: str
-
errors
¶ - List of one or more errors
Type: list[
worldline.connect.sdk.v1.domain.api_error.APIError
]
-
refund_result
¶ - Object that contains details on the created refund in case one has been created
Type:
worldline.connect.sdk.v1.domain.refund_result.RefundResult
-
-
class
worldline.connect.sdk.v1.domain.refund_method_specific_output.
RefundMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
refund_product_id
¶ - Refund product identifierPlease see refund products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refundproducts.html> for a full overview of possible values.
Type: int
-
total_amount_paid
¶ - Total paid amount (in cents and always with 2 decimals)
Type: long
-
total_amount_refunded
¶ Type: long
-
-
class
worldline.connect.sdk.v1.domain.refund_mobile_method_specific_output.
RefundMobileMethodSpecificOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_method_specific_output.RefundMethodSpecificOutput
-
network
¶ - The network that was used for the refund. The string that represents the network is identical to the strings that the payment product vendors use in their documentation.For instance: “Visa” for Google Pay <https://developer.apple.com/reference/passkit/pkpaymentnetwork>.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_output.
RefundOutput
[source]¶ Bases:
worldline.connect.sdk.v1.domain.order_output.OrderOutput
-
amount_paid
¶ - Amount paid
Type: long
-
bank_refund_method_specific_output
¶ - Object containing specific bank refund details
Type:
worldline.connect.sdk.v1.domain.refund_bank_method_specific_output.RefundBankMethodSpecificOutput
-
card_refund_method_specific_output
¶ - Object containing specific card refund details
Type:
worldline.connect.sdk.v1.domain.refund_card_method_specific_output.RefundCardMethodSpecificOutput
-
cash_refund_method_specific_output
¶ - Object containing specific cash refund details
Type:
worldline.connect.sdk.v1.domain.refund_cash_method_specific_output.RefundCashMethodSpecificOutput
-
e_invoice_refund_method_specific_output
¶ - Object containing specific e-invoice refund details
-
e_wallet_refund_method_specific_output
¶ - Object containing specific eWallet refund details
-
mobile_refund_method_specific_output
¶ - Object containing specific mobile refund details
-
payment_method
¶ - Payment method identifier used by the our payment engine with the following possible values:
- bankRefund
- bankTransfer
- card
- cash
- directDebit
- eInvoice
- invoice
- redirect
Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_payment_product840_customer_account.
RefundPaymentProduct840CustomerAccount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
PayPal account details-
customer_account_status
¶ - Status of the PayPal account.Possible values are:
- verified - PayPal has verified the funding means for this account
- unverified - PayPal has not verified the funding means for this account
Type: str
-
customer_address_status
¶ - Status of the customer’s shipping address as registered by PayPalPossible values are:
- none - Status is unknown at PayPal
- confirmed - The address has been confirmed
- unconfirmed - The address has not been confirmed
Type: str
-
payer_id
¶ - The unique identifier of a PayPal account and will never change in the life cycle of a PayPal account
Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_payment_product840_specific_output.
RefundPaymentProduct840SpecificOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
PayPal refund details-
customer_account
¶ - Object containing the PayPal account details
-
-
class
worldline.connect.sdk.v1.domain.refund_references.
RefundReferences
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
merchant_reference
¶ - Note that the maximum length of this field for transactions processed on the GlobalCollect platform is 30. Your unique reference of the transaction that is also returned in our report files. This is almost always used for your reconciliation of our report files.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.refund_request.
RefundRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_of_money
¶ - Object containing amount and ISO currency code attributes
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
bank_refund_method_specific_input
¶ - Object containing the specific input details for a bank refund
Type:
worldline.connect.sdk.v1.domain.bank_refund_method_specific_input.BankRefundMethodSpecificInput
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.refund_customer.RefundCustomer
-
refund_date
¶ - Refund dateFormat: YYYYMMDD
Type: str
-
refund_references
¶ - Object that holds all reference properties that are linked to this refund
Type:
worldline.connect.sdk.v1.domain.refund_references.RefundReferences
-
-
class
worldline.connect.sdk.v1.domain.refund_response.
RefundResponse
[source]¶ Bases:
worldline.connect.sdk.v1.domain.refund_result.RefundResult
-
class
worldline.connect.sdk.v1.domain.refund_result.
RefundResult
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_order_status.AbstractOrderStatus
-
refund_output
¶ - Object containing refund details
Type:
worldline.connect.sdk.v1.domain.refund_output.RefundOutput
-
status
¶ - Current high-level status of the refund in a human-readable form. Possible values are:
- CREATED - The transaction has been created. This is the initial state once a new refund is created.
- PENDING_APPROVAL - The transaction is awaiting approval from you to proceed with the processing of the refund
- REJECTED - The refund has been rejected
- REFUND_REQUESTED - The transaction is in the queue to be refunded
- REFUNDED - We have successfully refunded the customer
- REJECTED_CAPTURE - The refund was rejected by the bank or us during processing
- CANCELLED - You have cancelled the transaction
Please see Statuses <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/statuses.html> for a full overview of possible values.Type: str
-
status_output
¶ - This object has the numeric representation of the current refund status, timestamp of last status change and performable action on the current refund resource.In case of a rejected refund, detailed error information is listed.
Type:
worldline.connect.sdk.v1.domain.order_status_output.OrderStatusOutput
-
-
class
worldline.connect.sdk.v1.domain.refunds_response.
RefundsResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
refunds
¶ - The list of all refunds performed on the requested payment.
Type: list[
worldline.connect.sdk.v1.domain.refund_result.RefundResult
]
-
-
class
worldline.connect.sdk.v1.domain.regular_expression_validator.
RegularExpressionValidator
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
regular_expression
¶ - Contains the regular expression that the value of the field needs to be validated against
Type: str
-
-
class
worldline.connect.sdk.v1.domain.result_do_risk_assessment.
ResultDoRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
category
¶ - The Risk Services category with the following possible values:
- retaildecisionsCCFraudCheck - checks performed by Retail Decisions
- globalcollectBlacklistCheckCC - Checked against the blacklist on the GlobalCollect platform
- authorizationCheck - 0$ auth card account validation check
- ddFraudCheck - Check performed for German market via InterCard
- validationbankAccount - Bank account details are algorithmically checked if they could exist
- globalcollectBlacklistCheckDD - Checked against the blacklist on the GlobalCollect platform
Type: str
-
result
¶ - Risk service result with the following possible results:
- accepted - Based on the checks performed the transaction can be accepted
- challenged - Based on the checks performed the transaction should be manually reviewed
- denied - Based on the checks performed the transaction should be rejected
- no-advice - No fraud check was requested/performed
- error - The fraud check resulted in an error and the fraud check was thus not performed
Type: str
-
retaildecisions_cc_fraud_check_output
¶ - Object containing the results of the fraud checks performed by Retail Decisions
-
validation_bank_account_output
¶ - Object containing the results of the fraud checks performed on the bank account data
Type:
worldline.connect.sdk.v1.domain.validation_bank_account_output.ValidationBankAccountOutput
-
-
class
worldline.connect.sdk.v1.domain.retail_decisions_cc_fraud_check_output.
RetailDecisionsCCFraudCheckOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fraud_code
¶ - Provides additional information about the fraud result
Type: str
-
fraud_neural
¶ - The raw score returned by the Neural check returned by the evaluation of the transaction
Type: str
-
fraud_rcf
¶ - List of RuleCategoryFlags as setup in the Retail Decisions system that lead to the result
Type: str
-
-
class
worldline.connect.sdk.v1.domain.risk_assessment.
RiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
fraud_fields
¶ - Object containing additional data that will be used to assess the risk of fraud
Type:
worldline.connect.sdk.v1.domain.fraud_fields.FraudFields
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
-
class
worldline.connect.sdk.v1.domain.risk_assessment_bank_account.
RiskAssessmentBankAccount
[source]¶ Bases:
worldline.connect.sdk.v1.domain.risk_assessment.RiskAssessment
-
bank_account_bban
¶ - Object containing account holder name and bank account information
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
bank_account_iban
¶ - Object containing account holder name and IBAN information
Type:
worldline.connect.sdk.v1.domain.bank_account_iban.BankAccountIban
-
-
class
worldline.connect.sdk.v1.domain.risk_assessment_card.
RiskAssessmentCard
[source]¶ Bases:
worldline.connect.sdk.v1.domain.risk_assessment.RiskAssessment
-
card
¶ - Object containing Card object
-
-
class
worldline.connect.sdk.v1.domain.risk_assessment_response.
RiskAssessmentResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
results
¶ - Object that contains the results of the performed fraudchecks
Type: list[
worldline.connect.sdk.v1.domain.result_do_risk_assessment.ResultDoRiskAssessment
]
-
-
class
worldline.connect.sdk.v1.domain.scheme_token_data.
SchemeTokenData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
cardholder_name
¶ - The card holder’s name on the card. Minimum length of 2, maximum length of 51 characters.
Type: str
-
cryptogram
¶ - The Token Cryptogram is a dynamic one-time use value that is used to verify the authenticity of the transaction and the integrity of the data used in the generation of the Token Cryptogram. Visa calls this the Token Authentication Verification Value (TAVV) cryptogram.
Type: str
-
eci
¶ - The Electronic Commerce Indicator you got with the Token Cryptogram
Type: str
-
network_token
¶ - The network token. Note: This is called Payment Token in the EMVCo documentation
Type: str
-
token_expiry_date
¶ - The expiry date of the network token
Type: str
-
-
class
worldline.connect.sdk.v1.domain.sdk_data_input.
SdkDataInput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
device_render_options
¶ - Object containing rendering options of the device.
Type:
worldline.connect.sdk.v1.domain.device_render_options.DeviceRenderOptions
-
sdk_app_id
¶ - Universally unique ID created upon all installations and updates of your app on a c Device. This will be newly generated and stored by the 3DS SDK for each installation or update
Type: str
-
sdk_encrypted_data
¶ - JWE Object containing data encrypted by the 3-D Secure SDK
Type: str
-
sdk_ephemeral_public_key
¶ - Public key component of the ephemeral key pair generated by the 3-D Secure SDK and used to establish session keys between the 3-D Secure SDK and ACS.
Type: str
-
sdk_max_timeout
¶ - Indicates maximum amount of time (in minutes) for all exchanges. Minimum amount of minutes is 5.
Type: str
-
sdk_reference_number
¶ - Identifies the vendor and version for the 3-D Secure SDK that is integrated in your app, assigned by EMVCo when the 3-D Secure SDK is approved.
Type: str
-
sdk_transaction_id
¶ - Universally unique transaction identifier assigned by the 3-D Secure SDK to identify a single transaction.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.sdk_data_output.
SdkDataOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
sdk_transaction_id
¶ - Universally unique transaction identifier assigned by the 3-D Secure SDK to identify this transaction.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.seller.
Seller
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
address
¶ - Object containing the seller address details
-
channel_code
¶ - This property is specific to Visa Argentina. Channelcode according to Prisma. Please contact the acquirer to get the full list you need to use.
Type: str
-
description
¶ - Description of the seller
Type: str
-
external_reference_id
¶ - Seller ID assigned by the Merchant Aggregator
Type: str
-
geocode
¶ - The sellers geocode
Type: str
-
id
¶ - The sellers identifier
Type: str
-
invoice_number
¶ - Invoice number of the payment
Type: str
-
is_foreign_retailer
¶ - Indicates if the retailer is considered foreign or domestic when compared to the location of the marketplace. Possible values:
- true - The retailer is considered foreign because they are located in a different country than the marketplace. For marketplaces located in the European Economic Area (EEA) and UK (and Gibraltar), this includes transactions where the marketplace is within the EEA and UK (and Gibraltar), but the retailer is located outside of the EEA and UK (and Gibraltar)
- false - The retailer is considered domestic because they are located in the same country as the marketplace. For marketplaces located in the European Economic Area (EEA) and UK (and Gibraltar), this includes transactions where the retailer is also located within the EEA and UK (and Gibraltar).
Type: bool
-
mcc
¶ - Merchant category code
Type: str
-
name
¶ - Name of the seller
Type: str
-
phone_number
¶ - Main Phone Number
Type: str
-
type
¶ - Seller type. Possible values:
- passport
- dni
- arg-identity-card
- civic-notebook
- enrollment-book
- cuil
- cuit
- general-register
- election-title
- cpf
- cnpj
- ssn
- citizen-ship
- col-identity-card
- alien-registration
Type: str
-
-
class
worldline.connect.sdk.v1.domain.sepa_direct_debit_payment_method_specific_input.
SepaDirectDebitPaymentMethodSpecificInput
[source]¶ -
-
date_collect
¶ - Changed date for direct debit collection. Only relevant for legacy SEPA Direct Debit.Format: YYYYMMDD
Type: str
-
direct_debit_text
¶ - Description of the transaction that will appear on the customer bank statement to aid the customer in recognizing the transaction. Only relevant for legacy SEPA Direct Debit.
Type: str
-
is_recurring
¶ - Indicates if this transaction is of a one-off or a recurring type. Only relevant for legacy SEPA Direct Debit.
- true - This is recurring
- false - This is one-off
Type: bool
-
payment_product771_specific_input
¶ - Object containing information specific to SEPA Direct Debit
-
recurring_payment_sequence_indicator
¶ - Only relevant for legacy SEPA Direct Debit.
- first = This transaction is the first of a series of recurring transactions
- recurring = This transaction is a subsequent transaction in a series of recurring transactions
- last = This transaction is the last transaction of a series of recurring transactions
Type: str
-
requires_approval
¶ - true - The payment requires approval before the funds will be captured using the Approve payment or Capture payment API.
- false - The payment does not require approval, and the funds will be captured automatically.
Type: bool
-
token
¶ - ID of the token that holds previously stored SEPA Direct Debit account and mandate data. Only relevant for legacy SEPA Direct Debit.
Type: str
-
tokenize
¶ - Indicates if this transaction should be tokenized. Only relevant for legacy SEPA Direct Debit.
- true - Tokenize the transaction
- false - Do not tokenize the transaction, unless it would be tokenized by other means such as auto-tokenization of recurring payments.
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.sepa_direct_debit_payment_method_specific_input_base.
SepaDirectDebitPaymentMethodSpecificInputBase
[source]¶ -
-
payment_product771_specific_input
¶ - Object containing information specific to SEPA Direct Debit
-
-
class
worldline.connect.sdk.v1.domain.sepa_direct_debit_payment_method_specific_output.
SepaDirectDebitPaymentMethodSpecificOutput
[source]¶ -
-
fraud_results
¶ - Object containing the results of the fraud screening
Type:
worldline.connect.sdk.v1.domain.fraud_results.FraudResults
-
payment_product771_specific_output
¶ - Output that is SEPA Direct Debit specific (i.e. the used mandate)
Type:
worldline.connect.sdk.v1.domain.payment_product771_specific_output.PaymentProduct771SpecificOutput
-
token
¶ - ID of the token. This property is populated for the GlobalCollect payment platform when the payment was done with a token or when the payment was tokenized.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.sepa_direct_debit_payment_product771_specific_input.
SepaDirectDebitPaymentProduct771SpecificInput
[source]¶ -
Object containing information specific to SEPA Direct Debit for Create Payments.
-
existing_unique_mandate_reference
¶ - The unique reference of the existing mandate to use in this payment.
Type: str
-
mandate
¶ - Object containing information to create a SEPA Direct Debit mandate.
Type:
worldline.connect.sdk.v1.domain.create_mandate_with_return_url.CreateMandateWithReturnUrl
-
-
class
worldline.connect.sdk.v1.domain.sepa_direct_debit_payment_product771_specific_input_base.
SepaDirectDebitPaymentProduct771SpecificInputBase
[source]¶ -
Object containing information specific to SEPA Direct Debit for Hosted Checkouts.
-
existing_unique_mandate_reference
¶ - The unique reference of the existing mandate to use in this payment.
Type: str
-
mandate
¶ - Object containing information to create a SEPA Direct Debit mandate.
Type:
worldline.connect.sdk.v1.domain.create_mandate_base.CreateMandateBase
-
-
class
worldline.connect.sdk.v1.domain.session_request.
SessionRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product_filters
¶ - Restrict the payment products available for payment completion by restricting to and excluding certain payment products and payment product groups.
-
tokens
¶ - List of previously stored tokens linked to the customer that wants to checkout.
Type: list[str]
-
-
class
worldline.connect.sdk.v1.domain.session_response.
SessionResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
asset_url
¶ - The datacenter-specific base url for assets. This value needs to be passed to the Client SDK to make sure that the client software connects to the right datacenter.
Type: str
-
client_api_url
¶ - The datacenter-specific base url for client requests. This value needs to be passed to the Client SDK to make sure that the client software connects to the right datacenter.
Type: str
-
client_session_id
¶ - The identifier of the session that has been created.
Type: str
-
customer_id
¶ - The session is build up around the customer in the form of the customerId. All of the Client APIs use this customerId in the URI to identify the customer.
Type: str
-
invalid_tokens
¶ - Tokens that are submitted in the request are validated. In case any of the tokens can’t be used anymore they are returned in this array. You should most likely remove those tokens from your system.
Type: list[str]
-
region
¶ - Possible values:
- EU - datacenter located in Amsterdam
- US - datacenter located in Miami
- AMS - datacenter located in Amsterdam
- PAR - datacenter located in Paris
When a session is created it is created in a specific datacenter. Any subsequent calls using the Client API need to be datacenter specific. The datacenters are identified by this region value. This value needs to be passed to the Client SDK to make sure that the client software connects to the right datacenter. This only applies if your clients use a version older than the ones listed below:- JavaScript Client SDK v3.6.0
- iOS ObjectiveC Client SDK v3.10.0
- iOS Swift Client SDK v2.2.0
- Android Client SDK v3.10.0
In case of the iOS and Android SDKs the version of the SDK used will be tightly coupled with the versions of your app that is still in active use. You are advised to pass this value to your clients in case you are unsure of the version used in your clients.Type: str
-
-
class
worldline.connect.sdk.v1.domain.shipping.
Shipping
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information regarding shipping / delivery-
address
¶ - Object containing address information
Type:
worldline.connect.sdk.v1.domain.address_personal.AddressPersonal
-
address_indicator
¶ - Indicates shipping method chosen for the transaction. Possible values:
- same-as-billing = the shipping address is the same as the billing address
- another-verified-address-on-file-with-merchant = the address used for shipping is another verified address of the customer that is on file with you
- different-than-billing = shipping address is different from the billing address
- ship-to-store = goods are shipped to a store (shipping address = store address)
- digital-goods = electronic delivery of digital goods
- travel-and-event-tickets-not-shipped = travel and/or event tickets that are not shipped
- other = other means of delivery
Type: str
-
comments
¶ - Comments included during shipping
Type: str
-
email_address
¶ - Email address linked to the shipping
Type: str
-
first_usage_date
¶ - Date (YYYYMMDD) when the shipping details for this transaction were first used.
Type: str
-
is_first_usage
¶ - Indicator if this shipping address is used for the first time to ship an ordertrue = the shipping details are used for the first time with this transactionfalse = the shipping details have been used for other transactions in the past
Type: bool
-
shipped_from_zip
¶ - The zip/postal code of the location from which the goods were shipped.
Type: str
-
tracking_number
¶ - Shipment tracking number
Type: str
-
type
¶ - Indicates the merchandise delivery timeframe. Possible values:
- electronic = For electronic delivery (services or digital goods)
- same-day = For same day deliveries
- overnight = For overnight deliveries
- 2-day-or-more = For two day or more delivery time for payments that are processed by the GlobalCollect platform
- 2-day-or-more = For two day or more delivery time for payments that are processed by the Ogone platform
- priority = For prioritized deliveries for payments that are processed by the WL Online Payment Acceptance platform
- ground = For deliveries via ground for payments that are processed by the WL Online Payment Acceptance platform
- to-store = For deliveries to a store for payments that are processed by the WL Online Payment Acceptance platform
Type: str
-
-
class
worldline.connect.sdk.v1.domain.shipping_risk_assessment.
ShippingRiskAssessment
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing information regarding shipping / delivery-
address
¶ - Object containing address information
Type:
worldline.connect.sdk.v1.domain.address_personal.AddressPersonal
-
comments
¶ - Comments included during shipping
Type: str
-
tracking_number
¶ - Shipment tracking number
Type: str
-
-
class
worldline.connect.sdk.v1.domain.shopping_cart.
ShoppingCart
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
amount_breakdown
¶ - Determines the type of the amount.
Type: list[
worldline.connect.sdk.v1.domain.amount_breakdown.AmountBreakdown
]
-
gift_card_purchase
¶ - Object containing information on purchased gift card(s)
Type:
worldline.connect.sdk.v1.domain.gift_card_purchase.GiftCardPurchase
-
is_pre_order
¶ - The customer is pre-ordering one or more items
Type: bool
-
items
¶ - Shopping cart data
Type: list[
worldline.connect.sdk.v1.domain.line_item.LineItem
]
-
pre_order_item_availability_date
¶ - Date (YYYYMMDD) when the preordered item becomes available
Type: str
-
re_order_indicator
¶ - Indicates whether the cardholder is reordering previously purchased item(s)true = the customer is re-ordering at least one of the items againfalse = this is the first time the customer is ordering these items
Type: bool
-
-
class
worldline.connect.sdk.v1.domain.swift.
Swift
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bic
¶ - The BIC is the Business Identifier Code, also known as SWIFT or Bank Identifier code. It is a code with an internationally agreed format to Identify a specific bank or even branch. The BIC contains 8 or 11 positions: the first 4 contain the bank code, followed by the country code and location code.
Type: str
-
category
¶ - SWIFT category
Type: str
-
chips_uid
¶ - Clearing House Interbank Payments System (CHIPS) UIDCHIPS is one half of the primary US network of large-value domestic and international payments.
Type: str
-
extra_info
¶ - SWIFT extra information
Type: str
-
po_box_country
¶ - Institution PO Box country
Type: str
-
po_box_location
¶ - Institution PO Box location
Type: str
-
po_box_number
¶ - Institution PO Box number
Type: str
-
po_box_zip
¶ - Institution PO Box ZIP
Type: str
-
routing_bic
¶ - Payment routing BIC
Type: str
-
services
¶ - SWIFT services
Type: str
-
-
class
worldline.connect.sdk.v1.domain.test_connection.
TestConnection
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
result
¶ - OK result on the connection to the payment engine.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.third_party_data.
ThirdPartyData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
payment_product863
¶ - Contains the third party data for payment product 863 (WeChat Pay).
Type:
worldline.connect.sdk.v1.domain.payment_product863_third_party_data.PaymentProduct863ThirdPartyData
-
-
class
worldline.connect.sdk.v1.domain.third_party_status_response.
ThirdPartyStatusResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
third_party_status
¶ - The status returned by the third party.Possible values:
- WAITING - The customer has not connected to the third party
- INITIALIZED - Authentication in progress
- AUTHORIZED - Payment in progress
- COMPLETED - The customer has completed the payment at the third party
Type: str
-
-
class
worldline.connect.sdk.v1.domain.three_d_secure.
ThreeDSecure
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_three_d_secure.AbstractThreeDSecure
Object containing specific data regarding 3-D Secure-
external_cardholder_authentication_data
¶ - Object containing 3D secure details.
-
redirection_data
¶ - Object containing browser specific redirection related data
Type:
worldline.connect.sdk.v1.domain.redirection_data.RedirectionData
-
-
class
worldline.connect.sdk.v1.domain.three_d_secure_base.
ThreeDSecureBase
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_three_d_secure.AbstractThreeDSecure
Object containing specific data regarding 3-D Secure
-
class
worldline.connect.sdk.v1.domain.three_d_secure_data.
ThreeDSecureData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing data regarding the 3D Secure authentication-
acs_transaction_id
¶ - The ACS Transaction ID for a prior 3-D Secure authenticated transaction (for example, the first recurring transaction that was authenticated with the customer)
Type: str
-
method
¶ - Method of authentication used for this transaction.Possible values:
- frictionless = The authentication went without a challenge
- challenged = Cardholder was challenged
- avs-verified = The authentication was verified by AVS
- other = Another issuer method was used to authenticate this transaction
Type: str
-
utc_timestamp
¶ - Timestamp in UTC (YYYYMMDDHHmm) of the 3-D Secure authentication of this transaction
Type: str
-
-
class
worldline.connect.sdk.v1.domain.three_d_secure_results.
ThreeDSecureResults
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Object containing the 3-D Secure specific results-
acs_transaction_id
¶ - Identifier of the authenticated transaction at the ACS/Issuer
Type: str
-
applied_exemption
¶ - Exemption code from Carte Bancaire (130) (unknown possible values so far -free format)
Type: str
-
authentication_amount
¶ - The amount for which this transaction has been authenticated.
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
cavv
¶ - CAVV or AVV result indicating authentication validation value
Type: str
-
directory_server_transaction_id
¶ - The 3-D Secure Directory Server transaction ID that is used for the 3D Authentication
Type: str
-
eci
¶ - Indicates Authentication validation results returned after AuthenticationValidation
Type: str
-
exemption_output
¶ - Object containing exemption output
Type:
worldline.connect.sdk.v1.domain.exemption_output.ExemptionOutput
-
scheme_risk_score
¶ - Global score calculated by the Carte Bancaire (130) Scoring platform. Possible values from 0 to 99
Type: int
-
sdk_data
¶ - Object containing 3-D Secure in-app SDK data
Type:
worldline.connect.sdk.v1.domain.sdk_data_output.SdkDataOutput
-
three_d_secure_data
¶ - Object containing data regarding the 3-D Secure authentication
Type:
worldline.connect.sdk.v1.domain.three_d_secure_data.ThreeDSecureData
-
three_d_secure_version
¶ - The 3-D Secure version used for the authentication.This property is used in the communication with the acquirer
Type: str
-
three_d_server_transaction_id
¶ - The 3-D Secure Server transaction ID that is used for the 3-D Secure version 2 Authentication.
Type: str
-
xid
¶ - Transaction ID for the Authentication
Type: str
-
-
class
worldline.connect.sdk.v1.domain.token_card.
TokenCard
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_token.AbstractToken
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_token.CustomerToken
-
data
¶ - Object containing the card tokenizable details
Type:
worldline.connect.sdk.v1.domain.token_card_data.TokenCardData
-
-
class
worldline.connect.sdk.v1.domain.token_card_data.
TokenCardData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card_without_cvv
¶ - Object containing the card details (without CVV)
Type:
worldline.connect.sdk.v1.domain.card_without_cvv.CardWithoutCvv
-
first_transaction_date
¶ - Date of the first transaction (for ATOS)Format: YYYYMMDD
Type: str
-
provider_reference
¶ - Reference of the provider (of the first transaction) - used to store the ATOS Transaction Certificate
Type: str
-
-
class
worldline.connect.sdk.v1.domain.token_e_wallet.
TokenEWallet
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_token.AbstractToken
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_token.CustomerToken
-
data
¶ - Object containing the eWallet tokenizable data
Type:
worldline.connect.sdk.v1.domain.token_e_wallet_data.TokenEWalletData
-
-
class
worldline.connect.sdk.v1.domain.token_e_wallet_data.
TokenEWalletData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
billing_agreement_id
¶ - Identification of the PayPal recurring billing agreement
Type: str
-
-
class
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit.
TokenNonSepaDirectDebit
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_token.AbstractToken
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_token.CustomerToken
-
mandate
¶ - Object containing the mandate details
Type:
worldline.connect.sdk.v1.domain.mandate_non_sepa_direct_debit.MandateNonSepaDirectDebit
-
-
class
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit_payment_product705_specific_data.
TokenNonSepaDirectDebitPaymentProduct705SpecificData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
- Core reference number for the direct debit instruction in UK
Type: str
-
bank_account_bban
¶ - Object containing account holder name and bank account information
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
class
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit_payment_product730_specific_data.
TokenNonSepaDirectDebitPaymentProduct730SpecificData
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
bank_account_bban
¶ - Object containing account holder name and bank account information
Type:
worldline.connect.sdk.v1.domain.bank_account_bban.BankAccountBban
-
-
class
worldline.connect.sdk.v1.domain.token_response.
TokenResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card
¶ - Object containing card details
-
e_wallet
¶ - Object containing eWallet details
Type:
worldline.connect.sdk.v1.domain.token_e_wallet.TokenEWallet
-
id
¶ - ID of the token
Type: str
-
non_sepa_direct_debit
¶ - Object containing the non SEPA Direct Debit details
Type:
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit.TokenNonSepaDirectDebit
-
original_payment_id
¶ - The initial Payment ID of the transaction from which the token has been created
Type: str
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
sepa_direct_debit
¶ - Object containing the SEPA Direct Debit details
Type:
worldline.connect.sdk.v1.domain.token_sepa_direct_debit.TokenSepaDirectDebit
-
-
class
worldline.connect.sdk.v1.domain.token_sepa_direct_debit.
TokenSepaDirectDebit
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_token.AbstractToken
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_token_with_contact_details.CustomerTokenWithContactDetails
-
mandate
¶ - Object containing the mandate details
Type:
worldline.connect.sdk.v1.domain.mandate_sepa_direct_debit.MandateSepaDirectDebit
-
-
class
worldline.connect.sdk.v1.domain.token_sepa_direct_debit_without_creditor.
TokenSepaDirectDebitWithoutCreditor
[source]¶ Bases:
worldline.connect.sdk.v1.domain.abstract_token.AbstractToken
-
customer
¶ - Object containing the details of the customer
Type:
worldline.connect.sdk.v1.domain.customer_token_with_contact_details.CustomerTokenWithContactDetails
-
mandate
¶ - Object containing the mandate details
-
-
class
worldline.connect.sdk.v1.domain.tokenize_payment_request.
TokenizePaymentRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
alias
¶ - An alias for the token. This can be used to visually represent the token.If no alias is given, a payment product specific default is used, e.g. the obfuscated card number for card payment products.Do not include any unobfuscated sensitive data in the alias.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.trial_information.
TrialInformation
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
The object containing data of the trial period: no-cost or discounted time-constrained trial subscription period.-
amount_of_money_after_trial
¶ - The object containing the amount and ISO currency code attributes of money to be paid after the trial period ends.Note:The property order.amountOfMoney should be populated with the amount to be paid during or for the trial period (no-cost or discounted time-constrained trial subscription period).
Type:
worldline.connect.sdk.v1.domain.amount_of_money.AmountOfMoney
-
end_date
¶ - The date that the trial period ends in YYYYMMDD format.
Type: str
-
is_recurring
¶ - The property specifying if there will be recurring charges throughout the trial period (when the trial period involves a temporary discounted rate).True = there will be recurring charges during the trial periodFalse = there will not be recurring charges during the trial period
Type: bool
-
trial_period
¶ - The object containing information on the trial period duration and the interval between payments during that period.
Type:
worldline.connect.sdk.v1.domain.trial_period.TrialPeriod
-
trial_period_recurring
¶ - The object containing the frequency and interval between recurring payments.Note:This object should only be populated if the frequency of recurring payments between the trial and regular periods is different.If you do not populated this object, then the same interval frequency and interval of recurringPaymentsData.recurringInterval will be used
-
-
class
worldline.connect.sdk.v1.domain.trial_period.
TrialPeriod
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
The object containing information on the trial period duration and the interval between payments during that period.-
duration
¶ - The number of days, weeks, months, or years before the trial period ends.
Type: int
-
interval
¶ - The interval for the trial period to finish specified as days, weeks, months, quarters, or years.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.trustly_bank_account.
TrustlyBankAccount
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
account_last_digits
¶ - The last digits of the account number
Type: str
-
bank_name
¶ - The name of the bank
Type: str
-
clearinghouse
¶ - The country of the clearing house
Type: str
-
person_identification_number
¶ - The ID number of the account holder
Type: str
-
-
class
worldline.connect.sdk.v1.domain.update_token_request.
UpdateTokenRequest
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
card
¶ - Object containing card details
-
e_wallet
¶ - Object containing eWallet details
Type:
worldline.connect.sdk.v1.domain.token_e_wallet.TokenEWallet
-
non_sepa_direct_debit
¶ - Object containing the non SEPA Direct Debit details
Type:
worldline.connect.sdk.v1.domain.token_non_sepa_direct_debit.TokenNonSepaDirectDebit
-
payment_product_id
¶ - Payment product identifierPlease see payment products <https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/paymentproducts.html> for a full overview of possible values.
Type: int
-
sepa_direct_debit
¶ - Object containing the SEPA Direct Debit details
-
-
class
worldline.connect.sdk.v1.domain.upload_dispute_file_response.
UploadDisputeFileResponse
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
Response of a file upload request-
dispute_id
¶ - Dispute ID that is associated with the created dispute.
Type: str
-
file_id
¶ - The file ID that is associated with the uploaded file. This ID can be used for further communication regarding the file and retrieval of aforementioned property.
Type: str
-
-
class
worldline.connect.sdk.v1.domain.validation_bank_account_check.
ValidationBankAccountCheck
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
code
¶ - Code of the bank account validation check
Type: str
-
description
¶ - Description of check performed
Type: str
-
result
¶ - Result of the bank account validation check performed, with the following possible results:
- PASSED - The check passed
- ERROR - The check did not pass
- WARNING - Depending on your needs this either needs to be treated as a passed or error response. It depends on your business logic and for what purpose you want to use the validated bank account details.
- NOTCHECKED - This check was not performed, usually because one of the earlier checks already caused an error response to be triggered
Type: str
-
-
class
worldline.connect.sdk.v1.domain.validation_bank_account_output.
ValidationBankAccountOutput
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
checks
¶ - Array of checks performed with the results of each check
Type: list[
worldline.connect.sdk.v1.domain.validation_bank_account_check.ValidationBankAccountCheck
]
-
new_bank_name
¶ - Bank name, matching the bank code of the request
Type: str
-
reformatted_account_number
¶ - Reformatted account number according to local clearing rules
Type: str
-
reformatted_bank_code
¶ - Reformatted bank code according to local clearing rules
Type: str
-
reformatted_branch_code
¶ - Reformatted branch code according to local clearing rules
Type: str
-
-
class
worldline.connect.sdk.v1.domain.value_mapping_element.
ValueMappingElement
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
display_elements
¶ - List of extra data of the value.
Type: list[
worldline.connect.sdk.v1.domain.payment_product_field_display_element.PaymentProductFieldDisplayElement
]
-
display_name
¶ - Key name
Type: str
Deprecated; Use displayElements instead with ID ‘displayName’
-
value
¶ - Value corresponding to the key
Type: str
-
-
class
worldline.connect.sdk.v1.domain.webhooks_event.
WebhooksEvent
[source]¶ Bases:
worldline.connect.sdk.domain.data_object.DataObject
-
api_version
¶ Type: str
-
created
¶ Type: str
-
id
¶ Type: str
-
merchant_id
¶ Type: str
-
type
¶ Type: str
-
-
class
worldline.connect.sdk.v1.merchant.merchant_client.
MerchantClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Merchant client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
captures
()[source]¶ Resource /{merchantId}/captures
Returns: worldline.connect.sdk.v1.merchant.captures.captures_client.CapturesClient
-
disputes
()[source]¶ Resource /{merchantId}/disputes
Returns: worldline.connect.sdk.v1.merchant.disputes.disputes_client.DisputesClient
-
files
()[source]¶ Resource /{merchantId}/files
Returns: worldline.connect.sdk.v1.merchant.files.files_client.FilesClient
-
hostedcheckouts
()[source]¶ Resource /{merchantId}/hostedcheckouts
Returns: worldline.connect.sdk.v1.merchant.hostedcheckouts.hostedcheckouts_client.HostedcheckoutsClient
-
hostedmandatemanagements
()[source]¶ Resource /{merchantId}/hostedmandatemanagements
Returns: worldline.connect.sdk.v1.merchant.hostedmandatemanagements.hostedmandatemanagements_client.HostedmandatemanagementsClient
-
installments
()[source]¶ Resource /{merchantId}/installments
Returns: worldline.connect.sdk.v1.merchant.installments.installments_client.InstallmentsClient
-
mandates
()[source]¶ Resource /{merchantId}/mandates
Returns: worldline.connect.sdk.v1.merchant.mandates.mandates_client.MandatesClient
-
payments
()[source]¶ Resource /{merchantId}/payments
Returns: worldline.connect.sdk.v1.merchant.payments.payments_client.PaymentsClient
-
payouts
()[source]¶ Resource /{merchantId}/payouts
Returns: worldline.connect.sdk.v1.merchant.payouts.payouts_client.PayoutsClient
-
productgroups
()[source]¶ Resource /{merchantId}/productgroups
Returns: worldline.connect.sdk.v1.merchant.productgroups.productgroups_client.ProductgroupsClient
-
products
()[source]¶ Resource /{merchantId}/products
Returns: worldline.connect.sdk.v1.merchant.products.products_client.ProductsClient
-
refunds
()[source]¶ Resource /{merchantId}/refunds
Returns: worldline.connect.sdk.v1.merchant.refunds.refunds_client.RefundsClient
-
riskassessments
()[source]¶ Resource /{merchantId}/riskassessments
Returns: worldline.connect.sdk.v1.merchant.riskassessments.riskassessments_client.RiskassessmentsClient
-
services
()[source]¶ Resource /{merchantId}/services
Returns: worldline.connect.sdk.v1.merchant.services.services_client.ServicesClient
-
sessions
()[source]¶ Resource /{merchantId}/sessions
Returns: worldline.connect.sdk.v1.merchant.sessions.sessions_client.SessionsClient
-
tokens
()[source]¶ Resource /{merchantId}/tokens
Returns: worldline.connect.sdk.v1.merchant.tokens.tokens_client.TokensClient
-
-
class
worldline.connect.sdk.v1.merchant.captures.captures_client.
CapturesClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Captures client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
get
(capture_id, context=None)[source]¶ Resource /{merchantId}/captures/{captureId} - Get capture
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/captures/get.html
Parameters: - capture_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.capture_response.CaptureResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
refund
(capture_id, body, context=None)[source]¶ Resource /{merchantId}/captures/{captureId}/refund - Create Refund
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/captures/refund.html
Parameters: - capture_id – str
- body –
worldline.connect.sdk.v1.domain.refund_request.RefundRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.refund_response.RefundResponse
Raises: - DeclinedRefundException – if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception.
- IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.disputes.disputes_client.
DisputesClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Disputes client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
cancel
(dispute_id, context=None)[source]¶ Resource /{merchantId}/disputes/{disputeId}/cancel - Cancel dispute
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/disputes/cancel.html
Parameters: - dispute_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.dispute_response.DisputeResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(dispute_id, context=None)[source]¶ Resource /{merchantId}/disputes/{disputeId} - Get dispute
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/disputes/get.html
Parameters: - dispute_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.dispute_response.DisputeResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
submit
(dispute_id, context=None)[source]¶ Resource /{merchantId}/disputes/{disputeId}/submit - Submit dispute
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/disputes/submit.html
Parameters: - dispute_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.dispute_response.DisputeResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
upload_file
(dispute_id, body, context=None)[source]¶ Resource /{merchantId}/disputes/{disputeId} - Upload File
Parameters: - dispute_id – str
- body –
worldline.connect.sdk.v1.merchant.disputes.upload_file_request.UploadFileRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.upload_dispute_file_response.UploadDisputeFileResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.disputes.upload_file_request.
UploadFileRequest
[source]¶ Bases:
worldline.connect.sdk.communication.multipart_form_data_request.MultipartFormDataRequest
Multipart/form-data parameters for Upload File
-
__abstractmethods__
= frozenset([])¶
-
file
¶ - The file that you will upload as evidence to support a dispute.
Type:
worldline.connect.sdk.domain.uploadable_file.UploadableFile
-
to_multipart_form_data_object
()[source]¶ Returns: worldline.connect.sdk.communication.multipart_form_data_object.MultipartFormDataObject
-
-
class
worldline.connect.sdk.v1.merchant.files.files_client.
FilesClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Files client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
get_file
(file_id, context=None)[source]¶ Resource /{merchantId}/files/{fileId} - Retrieve File
Parameters: - file_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: a tuple with the headers and a generator of body chunks
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.hostedcheckouts.hostedcheckouts_client.
HostedcheckoutsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Hostedcheckouts client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
create
(body, context=None)[source]¶ Resource /{merchantId}/hostedcheckouts - Create hosted checkout
Parameters: Returns: worldline.connect.sdk.v1.domain.create_hosted_checkout_response.CreateHostedCheckoutResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
delete
(hosted_checkout_id, context=None)[source]¶ Resource /{merchantId}/hostedcheckouts/{hostedCheckoutId} - Delete hosted checkout
Parameters: - hosted_checkout_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(hosted_checkout_id, context=None)[source]¶ Resource /{merchantId}/hostedcheckouts/{hostedCheckoutId} - Get hosted checkout status
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/hostedcheckouts/get.html
Parameters: - hosted_checkout_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_hosted_checkout_response.GetHostedCheckoutResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.hostedmandatemanagements.hostedmandatemanagements_client.
HostedmandatemanagementsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Hostedmandatemanagements client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
create
(body, context=None)[source]¶ Resource /{merchantId}/hostedmandatemanagements - Create hosted mandate management
Parameters: Returns: Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(hosted_mandate_management_id, context=None)[source]¶ Resource /{merchantId}/hostedmandatemanagements/{hostedMandateManagementId} - Get hosted mandate management status
Parameters: - hosted_mandate_management_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.installments.installments_client.
InstallmentsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Installments client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
get_installments_info
(body, context=None)[source]¶ Resource /{merchantId}/installments/getInstallmentsInfo - Get installment information
Parameters: Returns: worldline.connect.sdk.v1.domain.installment_options_response.InstallmentOptionsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.mandates.mandates_client.
MandatesClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Mandates client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
block
(unique_mandate_reference, context=None)[source]¶ Resource /{merchantId}/mandates/{uniqueMandateReference}/block - Block mandate
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/mandates/block.html
Parameters: - unique_mandate_reference – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_mandate_response.GetMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
create
(body, context=None)[source]¶ Resource /{merchantId}/mandates - Create mandate
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/mandates/create.html
Parameters: Returns: worldline.connect.sdk.v1.domain.create_mandate_response.CreateMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
create_with_mandate_reference
(unique_mandate_reference, body, context=None)[source]¶ Resource /{merchantId}/mandates/{uniqueMandateReference} - Create mandate with mandatereference
Parameters: - unique_mandate_reference – str
- body –
worldline.connect.sdk.v1.domain.create_mandate_request.CreateMandateRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.create_mandate_response.CreateMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(unique_mandate_reference, context=None)[source]¶ Resource /{merchantId}/mandates/{uniqueMandateReference} - Get mandate
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/mandates/get.html
Parameters: - unique_mandate_reference – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_mandate_response.GetMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
revoke
(unique_mandate_reference, context=None)[source]¶ Resource /{merchantId}/mandates/{uniqueMandateReference}/revoke - Revoke mandate
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/mandates/revoke.html
Parameters: - unique_mandate_reference – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_mandate_response.GetMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
unblock
(unique_mandate_reference, context=None)[source]¶ Resource /{merchantId}/mandates/{uniqueMandateReference}/unblock - Unblock mandate
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/mandates/unblock.html
Parameters: - unique_mandate_reference – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_mandate_response.GetMandateResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.payments.find_payments_params.
FindPaymentsParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Find payments
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/find.html
-
__abstractmethods__
= frozenset([])¶
-
hosted_checkout_id
¶ - Your hosted checkout identifier to filter on.
Type: str
-
limit
¶ - The maximum number of payments to return, with a maximum of 100. If omitted, the limit will be 10.
Type: int
-
merchant_order_id
¶ - Your order identifier to filter on.
Type: long
-
merchant_reference
¶ - Your unique transaction reference to filter on. The maximum length is 52 characters for payments that are processed by WL Online Payment Acceptance platform.
Type: str
-
offset
¶ - The zero-based index of the first payment in the result. If omitted, the offset will be 0.
Type: int
-
-
class
worldline.connect.sdk.v1.merchant.payments.payments_client.
PaymentsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Payments client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
approve
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/approve - Approve payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/approve.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.approve_payment_request.ApprovePaymentRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_approval_response.PaymentApprovalResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancel
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/cancel - Cancel payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/cancel.html
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.cancel_payment_response.CancelPaymentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancelapproval
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/cancelapproval - Undo capture payment
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.cancel_approval_payment_response.CancelApprovalPaymentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
capture
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/capture - Capture payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/capture.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.capture_payment_request.CapturePaymentRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.capture_response.CaptureResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
captures
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/captures - Get captures of payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/captures.html
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.captures_response.CapturesResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
complete
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/complete - Complete payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/complete.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.complete_payment_request.CompletePaymentRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.complete_payment_response.CompletePaymentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
create
(body, context=None)[source]¶ Resource /{merchantId}/payments - Create payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/create.html
Parameters: Returns: worldline.connect.sdk.v1.domain.create_payment_response.CreatePaymentResponse
Raises: - DeclinedPaymentException – if the Worldline Global Collect platform declined / rejected the payment. The payment result will be available from the exception.
- IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
devicefingerprint
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/devicefingerprint - Get Device Fingerprint details
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.device_fingerprint_details.DeviceFingerprintDetails
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
dispute
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/dispute - Create dispute
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/dispute.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.create_dispute_request.CreateDisputeRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.dispute_response.DisputeResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
disputes
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/disputes - Get disputes
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/disputes.html
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.disputes_response.DisputesResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
find
(query, context=None)[source]¶ Resource /{merchantId}/payments - Find payments
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/find.html
Parameters: Returns: worldline.connect.sdk.v1.domain.find_payments_response.FindPaymentsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId} - Get payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/get.html
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_response.PaymentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
processchallenged
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/processchallenged - Approves challenged payment
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_response.PaymentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
refund
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/refund - Create refund
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/refund.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.refund_request.RefundRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.refund_response.RefundResponse
Raises: - DeclinedRefundException – if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception.
- IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
refunds
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/refunds - Get refunds of payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/refunds.html
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.refunds_response.RefundsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
third_party_status
(payment_id, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/thirdpartystatus - Third party status poll
Parameters: - payment_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.third_party_status_response.ThirdPartyStatusResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
tokenize
(payment_id, body, context=None)[source]¶ Resource /{merchantId}/payments/{paymentId}/tokenize - Create a token from payment
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payments/tokenize.html
Parameters: - payment_id – str
- body –
worldline.connect.sdk.v1.domain.tokenize_payment_request.TokenizePaymentRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.create_token_response.CreateTokenResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.payouts.find_payouts_params.
FindPayoutsParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Find payouts
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/find.html
-
__abstractmethods__
= frozenset([])¶
-
limit
¶ - The maximum number of payouts to return, with a maximum of 100. If omitted, the limit will be 10.
Type: int
-
merchant_order_id
¶ - Your order identifier to filter on.
Type: long
-
merchant_reference
¶ - Your unique transaction reference to filter on.
Type: str
-
offset
¶ - The zero-based index of the first payout in the result. If omitted, the offset will be 0.
Type: int
-
-
class
worldline.connect.sdk.v1.merchant.payouts.payouts_client.
PayoutsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Payouts client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
approve
(payout_id, body, context=None)[source]¶ Resource /{merchantId}/payouts/{payoutId}/approve - Approve payout
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/approve.html
Parameters: - payout_id – str
- body –
worldline.connect.sdk.v1.domain.approve_payout_request.ApprovePayoutRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payout_response.PayoutResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancel
(payout_id, context=None)[source]¶ Resource /{merchantId}/payouts/{payoutId}/cancel - Cancel payout
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/cancel.html
Parameters: - payout_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancelapproval
(payout_id, context=None)[source]¶ Resource /{merchantId}/payouts/{payoutId}/cancelapproval - Undo approve payout
Parameters: - payout_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
create
(body, context=None)[source]¶ Resource /{merchantId}/payouts - Create payout
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/create.html
Parameters: Returns: worldline.connect.sdk.v1.domain.payout_response.PayoutResponse
Raises: - DeclinedPayoutException – if the Worldline Global Collect platform declined / rejected the payout. The payout result will be available from the exception.
- IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
find
(query, context=None)[source]¶ Resource /{merchantId}/payouts - Find payouts
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/find.html
Parameters: Returns: worldline.connect.sdk.v1.domain.find_payouts_response.FindPayoutsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(payout_id, context=None)[source]¶ Resource /{merchantId}/payouts/{payoutId} - Get payout
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/payouts/get.html
Parameters: - payout_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payout_response.PayoutResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.productgroups.find_productgroups_params.
FindProductgroupsParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment product groups
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/productgroups/find.html
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount of the transaction in cents and always having 2 decimals
Type: long
-
country_code
¶ - ISO 3166-1 alpha-2 country code of the transaction
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
hide
¶ - Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
- fields - Don’t return any data on fields of the payment product
- accountsOnFile - Don’t return any accounts on file data
- translations - Don’t return any label texts associated with the payment products
Type: list[str]
-
is_installments
¶ - This allows you to filter payment products based on their support for installments or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
is_recurring
¶ - This allows you to filter groups based on their support for recurring, where a group supports recurring if it has at least one payment product that supports recurring
- true
- false
Type: bool
-
locale
¶ - Locale used in the GUI towards the consumer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not set up on your account, we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.productgroups.get_productgroup_params.
GetProductgroupParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment product group
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/productgroups/get.html
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount of the transaction in cents and always having 2 decimals.
Type: long
-
country_code
¶ - ISO 3166-1 alpha-2 country code of the transaction
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
hide
¶ - Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
- fields - Don’t return any data on fields of the payment product
- accountsOnFile - Don’t return any accounts on file data
- translations - Don’t return any label texts associated with the payment products
Type: list[str]
-
is_installments
¶ - This allows you to filter payment products based on their support for installments or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
is_recurring
¶ - Toggles filtering on support for recurring payments. Default value is false.
- true - filter out groups that do not support recurring payments, where a group supports recurring payments if it has at least one payment product that supports recurring.
- false - do not filter
Type: bool
-
locale
¶ - Locale used in the GUI towards the consumer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not setup on your account we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.productgroups.productgroups_client.
ProductgroupsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Productgroups client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
device_fingerprint
(payment_product_group_id, body, context=None)[source]¶ Resource /{merchantId}/productgroups/{paymentProductGroupId}/deviceFingerprint - Get device fingerprint
Parameters: - payment_product_group_id – str
- body –
worldline.connect.sdk.v1.domain.device_fingerprint_request.DeviceFingerprintRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.device_fingerprint_response.DeviceFingerprintResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
find
(query, context=None)[source]¶ Resource /{merchantId}/productgroups - Get payment product groups
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/productgroups/find.html
Parameters: Returns: worldline.connect.sdk.v1.domain.payment_product_groups.PaymentProductGroups
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(payment_product_group_id, query, context=None)[source]¶ Resource /{merchantId}/productgroups/{paymentProductGroupId} - Get payment product group
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/productgroups/get.html
Parameters: - payment_product_group_id – str
- query –
worldline.connect.sdk.v1.merchant.productgroups.get_productgroup_params.GetProductgroupParams
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_product_group_response.PaymentProductGroupResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.products.directory_params.
DirectoryParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment product directory
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/directory.html
-
__abstractmethods__
= frozenset([])¶
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency of the transaction
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.products.find_products_params.
FindProductsParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment products
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/find.html
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount in cents and always having 2 decimals
Type: long
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
hide
¶ - Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
- fields - Don’t return any data on fields of the payment product
- accountsOnFile - Don’t return any accounts on file data
- translations - Don’t return any label texts associated with the payment products
- productsWithoutFields - Don’t return products that require any additional data to be captured
- productsWithoutInstructions - Don’t return products that show instructions
- productsWithRedirects - Don’t return products that require a redirect to a 3rd party. Note that products that involve potential redirects related to 3D Secure authentication are not hidden
Type: list[str]
-
is_installments
¶ - This allows you to filter payment products based on their support for installments or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
is_recurring
¶ - This allows you to filter payment products based on their support for recurring or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
locale
¶ - Locale used in the GUI towards the consumer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not setup on your account we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.products.get_product_params.
GetProductParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment product
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/get.html
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount in cents and always having 2 decimals
Type: long
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
force_basic_flow
¶ - Relevant only for payment product 3012 (Bancontact). A boolean that indicates if you want to force the response to return the fields of the basic flow. This can be useful in corner cases where you have enabled the enhanced flow which supports payment with the Bancontact app, but need access to the product fields without creating a payment first.
Type: bool
-
hide
¶ - Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are:
- fields - Don’t return any data on fields of the payment product
- accountsOnFile - Don’t return any accounts on file data
- translations - Don’t return any label texts associated with the payment products
Type: list[str]
-
is_installments
¶ - This allows you to filter payment products based on their support for installments or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
is_recurring
¶ - This allows you to filter payment products based on their support for recurring or not
- true
- false
If this is omitted all payment products are returned.Type: bool
-
locale
¶ - Locale used in the GUI towards the consumer. Please make sure that a language pack is configured for the locale you are submitting. If you submit a locale that is not setup on your account we will use the default language pack for your account. You can easily upload additional language packs and set the default language pack in the Configuration Center.
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.products.networks_params.
NetworksParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get payment product networks
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/networks.html
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount in cents and always having 2 decimals
Type: long
-
country_code
¶ - ISO 3166-1 alpha-2 country code
Type: str
-
currency_code
¶ - Three-letter ISO currency code representing the currency for the amount
Type: str
-
is_recurring
¶ - This allows you to filter networks based on their support for recurring or not
- true
- false
Type: bool
-
-
class
worldline.connect.sdk.v1.merchant.products.products_client.
ProductsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Products client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
customer_details
(payment_product_id, body, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId}/customerDetails - Get customer details
Parameters: - payment_product_id – int
- body –
worldline.connect.sdk.v1.domain.get_customer_details_request.GetCustomerDetailsRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.get_customer_details_response.GetCustomerDetailsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
device_fingerprint
(payment_product_id, body, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId}/deviceFingerprint - Get device fingerprint
Parameters: - payment_product_id – int
- body –
worldline.connect.sdk.v1.domain.device_fingerprint_request.DeviceFingerprintRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.device_fingerprint_response.DeviceFingerprintResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
directory
(payment_product_id, query, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId}/directory - Get payment product directory
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/directory.html
Parameters: - payment_product_id – int
- query –
worldline.connect.sdk.v1.merchant.products.directory_params.DirectoryParams
- context –
worldline.connect.sdk.call_context.CallContext
Returns: Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
find
(query, context=None)[source]¶ Resource /{merchantId}/products - Get payment products
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/find.html
Parameters: Returns: worldline.connect.sdk.v1.domain.payment_products.PaymentProducts
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(payment_product_id, query, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId} - Get payment product
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/get.html
Parameters: - payment_product_id – int
- query –
worldline.connect.sdk.v1.merchant.products.get_product_params.GetProductParams
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_product_response.PaymentProductResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
networks
(payment_product_id, query, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId}/networks - Get payment product networks
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/networks.html
Parameters: - payment_product_id – int
- query –
worldline.connect.sdk.v1.merchant.products.networks_params.NetworksParams
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.payment_product_networks_response.PaymentProductNetworksResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
sessions
(payment_product_id, body, context=None)[source]¶ Resource /{merchantId}/products/{paymentProductId}/sessions - Create session for payment product
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/products/sessions.html
Parameters: - payment_product_id – int
- body –
worldline.connect.sdk.v1.domain.create_payment_product_session_request.CreatePaymentProductSessionRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.refunds.find_refunds_params.
FindRefundsParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Find refunds
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refunds/find.html
-
__abstractmethods__
= frozenset([])¶
-
hosted_checkout_id
¶ - Your hosted checkout identifier to filter on.
Type: str
-
limit
¶ - The maximum number of refunds to return, with a maximum of 100. If omitted, the limit will be 10.
Type: int
-
merchant_order_id
¶ - Your order identifier to filter on.
Type: long
-
merchant_reference
¶ - Your unique transaction reference to filter on.
Type: str
-
offset
¶ - The zero-based index of the first refund in the result. If omitted, the offset will be 0.
Type: int
-
-
class
worldline.connect.sdk.v1.merchant.refunds.refunds_client.
RefundsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Refunds client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
approve
(refund_id, body, context=None)[source]¶ Resource /{merchantId}/refunds/{refundId}/approve - Approve refund
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refunds/approve.html
Parameters: - refund_id – str
- body –
worldline.connect.sdk.v1.domain.approve_refund_request.ApproveRefundRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancel
(refund_id, context=None)[source]¶ Resource /{merchantId}/refunds/{refundId}/cancel - Cancel refund
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refunds/cancel.html
Parameters: - refund_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cancelapproval
(refund_id, context=None)[source]¶ Resource /{merchantId}/refunds/{refundId}/cancelapproval - Undo approve refund
Parameters: - refund_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
find
(query, context=None)[source]¶ Resource /{merchantId}/refunds - Find refunds
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refunds/find.html
Parameters: Returns: worldline.connect.sdk.v1.domain.find_refunds_response.FindRefundsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(refund_id, context=None)[source]¶ Resource /{merchantId}/refunds/{refundId} - Get refund
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/refunds/get.html
Parameters: - refund_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.refund_response.RefundResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.riskassessments.riskassessments_client.
RiskassessmentsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Riskassessments client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
bankaccounts
(body, context=None)[source]¶ Resource /{merchantId}/riskassessments/bankaccounts - Risk-assess bankaccount
Parameters: Returns: worldline.connect.sdk.v1.domain.risk_assessment_response.RiskAssessmentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
cards
(body, context=None)[source]¶ Resource /{merchantId}/riskassessments/cards - Risk-assess card
Parameters: Returns: worldline.connect.sdk.v1.domain.risk_assessment_response.RiskAssessmentResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.services.convert_amount_params.
ConvertAmountParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Convert amount
-
__abstractmethods__
= frozenset([])¶
-
amount
¶ - Amount to be converted in cents and always having 2 decimals
Type: long
-
source
¶ - Three-letter ISO currency code representing the source currency
Type: str
-
target
¶ - Three-letter ISO currency code representing the target currency
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.services.privacypolicy_params.
PrivacypolicyParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Get privacy policy
-
__abstractmethods__
= frozenset([])¶
-
locale
¶ - Locale in which the privacy policy should be returned. Uses your default locale when none is provided.
Type: str
-
payment_product_id
¶ - ID of the payment product for which you wish to retrieve the privacy policy. When no ID is provided you will receive all privacy policies for your payment products.
Type: int
-
-
class
worldline.connect.sdk.v1.merchant.services.services_client.
ServicesClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Services client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
bankaccount
(body, context=None)[source]¶ Resource /{merchantId}/services/convert/bankaccount - Convert bankaccount
Parameters: Returns: worldline.connect.sdk.v1.domain.bank_details_response.BankDetailsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
convert_amount
(query, context=None)[source]¶ Resource /{merchantId}/services/convert/amount - Convert amount
Parameters: Returns: worldline.connect.sdk.v1.domain.convert_amount.ConvertAmount
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get_iin_details
(body, context=None)[source]¶ Resource /{merchantId}/services/getIINdetails - Get IIN details
Parameters: Returns: worldline.connect.sdk.v1.domain.get_iin_details_response.GetIINDetailsResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
privacypolicy
(query, context=None)[source]¶ Resource /{merchantId}/services/privacypolicy - Get privacy policy
Parameters: Returns: worldline.connect.sdk.v1.domain.get_privacy_policy_response.GetPrivacyPolicyResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
testconnection
(context=None)[source]¶ Resource /{merchantId}/services/testconnection - Test connection
Parameters: Returns: worldline.connect.sdk.v1.domain.test_connection.TestConnection
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.sessions.sessions_client.
SessionsClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Sessions client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
create
(body, context=None)[source]¶ Resource /{merchantId}/sessions - Create session
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/sessions/create.html
Parameters: Returns: worldline.connect.sdk.v1.domain.session_response.SessionResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.merchant.tokens.delete_token_params.
DeleteTokenParams
[source]¶ Bases:
worldline.connect.sdk.communication.param_request.ParamRequest
Query parameters for Delete token
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/tokens/delete.html
-
__abstractmethods__
= frozenset([])¶
-
mandate_cancel_date
¶ - Date of the mandate cancellationFormat: YYYYMMDD
Type: str
-
-
class
worldline.connect.sdk.v1.merchant.tokens.tokens_client.
TokensClient
(parent, path_context)[source]¶ Bases:
worldline.connect.sdk.api_resource.ApiResource
Tokens client. Thread-safe.
-
__init__
(parent, path_context)[source]¶ Parameters: - parent –
worldline.connect.sdk.api_resource.ApiResource
- path_context – dict[str, str]
- parent –
-
approvesepadirectdebit
(token_id, body, context=None)[source]¶ Resource /{merchantId}/tokens/{tokenId}/approvesepadirectdebit - Approve SEPA DD mandate
Parameters: - token_id – str
- body –
worldline.connect.sdk.v1.domain.approve_token_request.ApproveTokenRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
create
(body, context=None)[source]¶ Resource /{merchantId}/tokens - Create token
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/tokens/create.html
Parameters: Returns: worldline.connect.sdk.v1.domain.create_token_response.CreateTokenResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
delete
(token_id, query, context=None)[source]¶ Resource /{merchantId}/tokens/{tokenId} - Delete token
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/tokens/delete.html
Parameters: - token_id – str
- query –
worldline.connect.sdk.v1.merchant.tokens.delete_token_params.DeleteTokenParams
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
get
(token_id, context=None)[source]¶ Resource /{merchantId}/tokens/{tokenId} - Get token
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/tokens/get.html
Parameters: - token_id – str
- context –
worldline.connect.sdk.call_context.CallContext
Returns: worldline.connect.sdk.v1.domain.token_response.TokenResponse
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
update
(token_id, body, context=None)[source]¶ Resource /{merchantId}/tokens/{tokenId} - Update token
See also https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/python/tokens/update.html
Parameters: - token_id – str
- body –
worldline.connect.sdk.v1.domain.update_token_request.UpdateTokenRequest
- context –
worldline.connect.sdk.call_context.CallContext
Returns: None
Raises: - IdempotenceException – if an idempotent request caused a conflict (HTTP status code 409)
- ValidationException – if the request was not correct and couldn’t be processed (HTTP status code 400)
- AuthorizationException – if the request was not allowed (HTTP status code 403)
- ReferenceException – if an object was attempted to be referenced that doesn’t exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)
- PlatformException – if something went wrong at the Worldline Global Collect platform, the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer, or the service that you’re trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
- ApiException – if the Worldline Global Collect platform returned any other error
-
-
class
worldline.connect.sdk.v1.webhooks.v1_webhooks_factory.
V1WebhooksFactory
[source]¶ Bases:
object
Worldline Global Collect platform factory for several v1 webhooks components.
-
class
worldline.connect.sdk.v1.webhooks.webhooks_helper.
WebhooksHelper
(marshaller, secret_key_store)[source]¶ Bases:
object
Worldline Global Collect platform v1 webhooks helper.
-
marshaller
¶
-
secret_key_store
¶
-
unmarshal
(body, request_headers)[source]¶ Unmarshals the given body, while also validating it using the given request headers.
Raises: - SignatureValidationException – If the body could not be validated successfully.
- ApiVersionMismatchException – If the resulting event has an API version that this version of the SDK does not support.
Returns: The body unmarshalled as a WebhooksEvent.
-
-
exception
worldline.connect.sdk.webhooks.api_version_mismatch_exception.
ApiVersionMismatchException
(event_api_version, sdk_api_version)[source]¶ Bases:
exceptions.RuntimeError
Represents an error because a webhooks event has an API version that this version of the SDK does not support.
-
event_api_version
¶ Returns: The API version from the webhooks event.
-
sdk_api_version
¶ Returns: The API version that this version of the SDK supports.
-
-
class
worldline.connect.sdk.webhooks.in_memory_secret_key_store.
InMemorySecretKeyStore
[source]¶ Bases:
worldline.connect.sdk.webhooks.secret_key_store.SecretKeyStore
An in-memory secret key store. This implementation can be used in applications where secret keys can be specified at application startup.
-
__abstractmethods__
= frozenset([])¶
-
get_secret_key
(key_id)[source]¶ Returns: The secret key for the given key ID. Never None. Raises: SecretKeyNotAvailableException – If the secret key for the given key ID is not available.
-
-
exception
worldline.connect.sdk.webhooks.secret_key_not_available_exception.
SecretKeyNotAvailableException
(key_id, message=None, cause=None)[source]¶ Bases:
worldline.connect.sdk.webhooks.signature_validation_exception.SignatureValidationException
Represents an error that causes a secret key to not be available.
-
key_id
¶
-
-
class
worldline.connect.sdk.webhooks.secret_key_store.
SecretKeyStore
[source]¶ Bases:
object
A store of secret keys. Implementations could store secret keys in a database, on disk, etc.
-
__abstractmethods__
= frozenset(['get_secret_key'])¶
-
get_secret_key
(key_id)[source]¶ Returns: The secret key for the given key ID. Never None. Raises: SecretKeyNotAvailableException – If the secret key for the given key ID is not available.
-
-
exception
worldline.connect.sdk.webhooks.signature_validation_exception.
SignatureValidationException
(message=None, cause=None)[source]¶ Bases:
exceptions.RuntimeError
Represents an error while validating webhooks signatures.
-
class
worldline.connect.sdk.webhooks.signature_validator.
SignatureValidator
(secret_key_store)[source]¶ Bases:
object
Validator for webhooks signatures.
-
secret_key_store
¶
-
validate
(body, request_headers)[source]¶ Validates the given body using the given request headers.
Raises: SignatureValidationException – If the body could not be validated successfully.
-