Chained ajax call, second call returns 0

I’ve actually solved the problem there was an error in the code the $_POST['preapproval_key'] should have been $_POST['preapprovalKey'] literally hours wasted….