Dave from PayPal here.
1 what is the use of "endpoint" and "secret" in my app credentials (because i used Only client id)
Client id is the only credential that you need to use with the PayPal iOS SDK.
2 shall i need to submit the app to paypal to get any other credentials from paypal or directly to Appstore
No.
3 will my app is approved by apple if i use paypal
Many apps using the PayPal iOS SDK have already been approved by Apple.
4 what is the use of below code (even though i removed code )payment process is working
This is all explained in the documentation and the header files.
If it is necessary to submit the app to paypal first what are the necessary steps to taken
It is not necessary to submit your app to PayPal.
any detailed expalanation may be helpful.what is difference between paypalSdk and MPL, which is better?
The PayPal iOS SDK is the one which we will continue to support into the future. The only reason to use the older MPL library is if you need features which are not yet supported in the PayPal iOS SDK and the REST APIs on which it relies.