-
Notifications
You must be signed in to change notification settings - Fork 17
Option_Delete
Craig Christenson edited this page Oct 26, 2012
·
1 revision
You must specify your API username and password using the Twocheckout::API.credentials
method before calling a method in this class.
##Method
###delete!
Use to delete an existing option.
####Arguments
- None
- Must be called on a option instance.
####Returns
Returns a Hash object.
####Example Usage:
Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }
option = Twocheckout::Option.find({:option_id => 4839042084})
option.delete!
####Example Response:
{
"response_code"=>"OK",
"response_message"=>"Option successfully deleted."
}
Please feel free to contact 2Checkout directly for assistance with your integration.