i need to redirect while clicking payment button to the another site how can i code that in kentico 12 and also i need to get the customer details and order details.
I suggest reading the documentation
Or getting Kentico Training
Or hiring a Partner to develop for you.
Outside of those, I feel your question is too vague for this type of format.
Please, sign in to be able to submit a new answer.