-
Notifications
You must be signed in to change notification settings - Fork 17
Sale_Comment
Jacob McConnell edited this page Jun 10, 2014
·
2 revisions
You must specify your API username and password using the the Twocheckout::API.credentials method before calling a method in this class.
##Method
###comment
Use to add a comment to a sale.
####Arguments
- hash Parameters
- Hash containing create_comment parameters. Parameters -> API Create Comment
####Returns
Returns a Hash object.
####Example Usage:
Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }
sale = Twocheckout::Sale.find(:sale_id => 4786293822)
result = sale.comment({:sale_comment => "test"})####Example Response:
{
"response_code"=>"OK",
"response_message"=>"Created comment successfully."
}Please feel free to contact 2Checkout directly for assistance with your integration.