-
Notifications
You must be signed in to change notification settings - Fork 17
Option_Create
Jacob McConnell edited this page Jun 9, 2014
·
2 revisions
You must specify your API username and password using the twocheckout.Api.credentials
method before calling a method in this class.
##Method
###create
Use to create an option.
####Arguments
- dictionary Parameters
- Dictionary containing create_option parameters. Parameters -> API Create Option
####Returns
Returns a Python object.
####Example Usage:
twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})
params = {
'option_name': 'Example Option',
'option_value_name': 'Test',
'option_value_surcharge': 1.00
}
result = twocheckout.Option.create(params)
print result
####Example Response:
{
'option_id': '4774527631',
'response_code': 'OK',
'response_message': 'Option created successfully'
}
Please feel free to contact 2Checkout directly for assistance with your integration.