L
laura@refactoredmedia.com
Guest
I tried creating the class and when debugging I saw that the class was still null. I was able to get it to work using Javascript return fetch(sf_appPath + 'ajax/create-customer/' + cardholderEmail + "/" + paymentMethod + "/" + PlanId, { method: 'post', headers: { 'Content-Type': 'application/json; charset=utf-8' }, .then(response => { return response.json(); }) And my controller [HttpPost, Route("ajax/create-customer/{email}/{paymentmethod}/{planid}")] public JsonResult CreateCustomer(string email, string paymentmethod, string planid) { ...etc }
Continue reading...
Continue reading...