This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
Releases: Ingenico-ePayments/connect-sdk-python2
Releases · Ingenico-ePayments/connect-sdk-python2
3.0.0
- Added:
- Added method
upload_file
to classDisputesClient
and methodfiles
to classMerchantClient
to support uploading and downloading of files for disputes. - Added support for binary requests and responses:
- Added classes
UploadableFile
,MultipartFormDataObject
andMultipartFormDataRequest
for sendingmultipart/form-data
requests. - Added
get_with_binary_response
,delete_with_binary_response
,post_with_binary_response
andput_with_binary_response
methods to classCommunicator
that return, instead of a response object, a tuple with the response headers and a generator with chunks of the response body. Thepost
,put
,post_with_binary_response
andput_with_binary_response
methods have special support for objects of typesMultipartFormDataObject
andMultipartFormDataRequest
. - Refactored interface
Connection
. Its methods no longer return aResponse
object but instead a tuple with the status code, response headers and a generator with chunks of the response body. Itspost
andput
methods should also acceptMultipartFormDataObject
bodies instead of only string bodies. - Added method
set_binary_body
to classLogMessage
to support logging binary content.
- Added classes
- Added the following functions to module
ingenico.connect.sdk.request_header
:get_header_value(headers, header_name)
returns a single header value (ornull
).get_header(headers, header_name)
returns a singleRequestHeader
object (ornull
).
- Added module
ingenico.connect.sdk.response_header
with the following methods:get_header_value(headers, header_name)
returns a single header value (ornull
).get_header(headers, header_name)
returns a single header as a name/value tuple (ornull
).get_disposition_filename(headers)
returns the filename of theContent-Disposition
header (ornull
).
- Added method
- Removed:
- Removed method
public_key
from classProductsClient
, and classPublicKey
. Both were only used for encryption for Android Pay. Now that Android Pay has been replaced by Google Pay, which uses a different mechanism for encryption, this call is no longer needed. - Removed deprecated methods
convertAmount
andgetIINdetails
of classServicesClient
. - Removed class
Response
in favor of streaming responses. - Removed property
response
of classResponseException
. - Removed method
_add_parameter
of classParamRequest
. Its generated sub classes directly createRequestParam
objects instead of calling the more generic_add_parameter
method. - Removed method
_add_to_dictionary
of classDataObject
. Its generated and manually written sub classes directly add data to the dictionary instead of calling the more generic_add_parameter
method.
- Removed method
If you are not using custom implementations, this version is compatible with the previous version. Otherwise you need to perform the following steps:
- If you have created your own implementation of
Connection
, you need to change the implementation of theget
,delete
,post
andput
methods. These should now return a tuple with the status code, response headers and a generator with chunks of the response body, and not aResponse
object. You also need to make sure thepost
andput
methods acceptMultipartFormDataObject
bodies as well as string bodies. You probably also should take care to not log any binary request or response bodies. - If you have extended
Communicator
you need to change any overriddenget
,delete
,post
andput
methods to also supportMultipartFormDataRequest
objects. You also need to override the newget_with_binary_response
,delete_with_binary_response
,post_with_binary_response
andput_with_binary_response
methods.
2.36.0
- Added:
- Added properties
payment_product1521_specific_input
,payment_product1522_specific_input
,payment_product1523_specific_input
,payment_product1524_specific_input
andpayment_product1526_specific_input
to classCashPaymentMethodSpecificInput
.
- Added properties
- Fixed:
- Removed invalid SDK data information from the create payment request example.
2.35.0
- Added:
- Added property
third_party_data
to classMerchantAction
. - Added property
payment_product861_specific_input
to classRedirectPaymentMethodSpecificInput
. - Added property
open_id
to classRedirectPaymentProduct863SpecificInput
. - Added property
hosted_checkout_id
to classesFindPaymentsParams
andFindRefundsParams
.
- Added property
2.34.0
This release contains several changes for 3-D Secure version 2. Several properties have been deprecated in favor of new properties. The deprecated properties will still work though.
- Added:
- Added property
vat_number
to classCompanyInformation
. - Added property
merchant
to classesCreateHostedCheckoutRequest
,CompletePaymentRequest
,CreatePaymentRequest
andRiskAssessment
. - Added properties
recurring
andunscheduled_card_on_file_sequence_indicator
to classAbstractCardPaymentMethodSpecificInput
. - Added property
three_d_secure
to classesCardPaymentMethodSpecificInput
andCardPaymentMethodSpecificInputBase
. - Added properties
mobile_phone_number
andwork_phone_number
to classContactDetails
. - Added properties
account
,account_type
,device
andis_previous_customer
to classCustomer
. - Added properties
directory_server_transaction_id
,three_d_secure_version
andthree_d_server_transaction_id
to classExternalCardholderAuthenticationData
. - Added property
mobile_three_d_secure_challenge_parameters
to classMerchantAction
. - Added property
customer
to classOrderApprovePayment
. - Added property
transaction_type
to classOrderTypeInformation
. - Added property
redirection_data
to classRedirectPaymentMethodSpecificInput
. - Added properties
address
,address_indicator
,comments
,first_usage_date
,is_first_usage
,tracking_number
andtype
to classShipping
. - Added properties
gift_card_purchase
,is_pre_order
,pre_order_item_availability_date
andre_order_indicator
to classShoppingCart
. - Added properties
directory_server_transaction_id
,sdk_data
,three_d_secure_data
,three_d_secure_version
andthree_d_server_transaction_id
to classThreeDSecureResults
. - Added properties
account
,account_type
,device
andis_previous_customer
to classCustomerRiskAssessment
. - Added property
shipping
to classOrderRiskAssessment
.
- Added property
- Deprecated:
- Deprecated property
is_registered_customer
of classAirlineData
in favor of new propertyOrder.customer.account_type
. - Deprecated property
vat_number
of classCustomerBase
in favor of new propertycompany_information.vat_number
. - Deprecated property
addresses_are_identical
of classFraudFields
in favor of new propertyOrder.shipping.address_indicator
. - Deprecated property
card_owner_address
of classFraudFields
, which should be the same as existing propertyOrder.customer.billing_address
. - Deprecated property
default_form_fill
of classFraudFields
in favor of new propertyOrder.customer.device.default_form_fill
. - Deprecated property
device_fingerprint_activated
of classFraudFields
with no replacement. - Deprecated property
device_fingerprint_transaction_id
of classFraudFields
in favor of new propertyOrder.customer.device.device_fingerprint_transaction_id
. - Deprecated property
has_forgotten_pwd
of classFraudFields
in favor of new propertyOrder.customer.account.has_forgotten_password
. - Deprecated property
has_password
of classFraudFields
in favor of new propertyOrder.customer.account.has_password
. - Deprecated property
is_previous_customer
of classFraudFields
in favor of new propertyOrder.customer.is_previous_customer
. - Deprecated property
ship_comments
of classFraudFields
in favor of new propertyOrder.shipping.comments
. - Deprecated property
shipment_tracking_number
of classFraudFields
in favor of new propertyOrder.shipping.tracking_number
. - Deprecated property
shipping_details
of classFraudFields
with no replacement. - Deprecated property
website
of classFraudFields
in favor of new propertyMerchant.website_url
. - Deprecated class
FraudFieldsShippingDetails
with no replacement. - Deprecated property
recurring_payment_sequence_indicator
of classAbstractCardPaymentMethodSpecificInput
in favor of new propertyrecurring.recurring_payment_sequence_indicator
. - Deprecated property
skip_authentication
of classAbstractCardPaymentMethodSpecificInput
in favor of new propertythreeDSecure.skip_authentication
of its child classes. - Deprecated property
unscheduled_card_on_file_indicator
of classAbstractCardPaymentMethodSpecificInput
in favor of new propertyunscheduled_card_on_file_sequence_indicator
. - Deprecated property
external_cardholder_authentication_data
of classCardPaymentMethodSpecificInput
in favor of new propertythree_d_secure.external_cardholder_authentication_data
. - Deprecated property
return_url
of classCardPaymentMethodSpecificInput
in favor of new propertythree_d_secure.redirection_data.return_url
. - Deprecated property
payment_product1503_specific_input
of classCashPaymentMethodSpecificInput
and classCashPaymentProduct1503SpecificInput
, since Boleto Bancario no longer uses redirects. - Deprecated property
shipping_address
of classCustomer
in favor of new propertyOrder.shipping.address
. - Deprecated property
seller
of classOrder
in favor of new propertyMerchant.seller
. - Deprecated property
return_url
of classRedirectPaymentMethodSpecificInput
in favor of new propertyredirection_data.return_url
. - Deprecated property
shipping_address
of classCustomerRiskAssessment
in favor of new propertyOrderRiskAssessment.shipping.address
.
- Deprecated property
2.33.0
- Added:
- Added property
shipping
to classOrder
. - Added property
contact_phone
to classPaymentProduct840CustomerAccount
. - Added method
privacypolicy
to classServicesClient
.
- Added property
2.32.0
- Added:
- Added method
cancel
to classDisputesClient
.
- Added method
2.31.0
- Added:
- Added property
payment_product840_specific_input
to classRedirectPaymentMethodSpecificInputBase
. - Added class
AbstractRedirectPaymentProduct840SpecificInput
with propertyaddress_selection_at_pay_pal
. - Added methods
dispute
anddisputes
to classPaymentsClient
and methoddisputes
to classMerchantClient
to handle disputes.
- Added property
- Changed:
- Class
RedirectPaymentProduct840SpecificInput
now extends new classAbstractRedirectPaymentProduct840SpecificInput
.
- Class
2.30.0
- Added:
- Added property
mobile_payment_method_specific_input
to classCreateHostedCheckoutRequest
. - Added properties
pan
andpayment_method
to classDecryptedPaymentData
. - Added property
is_java_script_required
to classPaymentProduct
. - Added property
gateway
to classPaymentProduct320SpecificData
. - Added property
existing_unique_mandate_reference
to classesSepaDirectDebitPaymentProduct771SpecificInput
andSepaDirectDebitPaymentProduct771SpecificInputBase
.
- Added property
- Deprecated:
- Deprecated property
mandate_reference
of classAbstractSepaDirectDebitPaymentProduct771SpecificInput
in favor of the newexisting_unique_mandate_reference
property of its sub classes.
- Deprecated property
- Removed:
- Removed property
payment_product320_specific_input
from classMobilePaymentMethodSpecificInput
. This was only used for Android Pay if you decrypted Google's payment data yourself. Now that Android Pay has been replaced by Google Pay this field is no longer needed. - Removed property
transaction_id
from classMobilePaymentMethodSpecificInput
. This was only used for Android Pay and Apple Pay if you decrypted Google's or Apple's payment data yourself. This field was never used, and has therefore been dropped.
- Removed property
2.29.0
- Added:
- Added property
fraugster
to classCardFraudResults
.
- Added property
2.28.0
- Added:
- Added property
payment_product3201_specific_output
to classRedirectPaymentMethodSpecificOutput
.
- Added property