Hello All,
I am using Konakart JSON API. I want to register customer using JSON call.
I have read from API that in KKEng i have method
int registerCustomer(CustomerRegistrationIf custReg)
Which can work for me.
I want an Idea How can i call this method.
Thank you
What programming language are you using to make the call?
Firstly Sorry for late reply .
I'm using JSP and In my Javascript part I have written jquery code
<script type="text/javascript">
$("#submitButton").click(function(){
var registerCustomerCallback = function(result, textStatus, jqXHR) {
var registeredCustomer = decodeJson(result);
};
var customerRegistration = new CustomerRegistrationIf();
kkEng.registerCustomer(customerRegistration,registerCustomerCallback, null,eng);
});
});
</script>
I just want to register a customer. I cannot use Controller I chose an JQuery approach to register a customer.
Please guide me. How can I achieve this.
Thank you
You have to set the attributes of the CustomerRegistration object in the JavaScript. It is called CustomerRegistration and not CustomerRegistrationIf.
In order to see an example for what you need to set, take a look at RegisterCustomer.java under \KonaKart\java_api_examples\src\com\konakart\apiexamples.