Language

2Checkout Documentation

Comment

You must specify your API username and password using the twocheckout.Api.credentials method before calling a method in this class.

Method

comment

Use to add a comment to a sale.

Arguments

  • dictionary Parameters

Returns

Returns a Python object.

Example Usage:

twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})

params = {
    'sale_id': 4774467596,
    'sale_comment': 'test'
    }

sale = twocheckout.Sale.find(params)

result = sale.comment(params)

Example Response:

{
    u'response_code': u'OK',
    u'response_message': u'Created comment successfully.'
}