A payment gateway involves the use of technology / security whose scope is not within the confines of this post. Did you mean to ask how to integrate a website / web page with an existing payment gateway ? The gateways' documentation is the way to go.
please help me with an example.
I doubt one will be provided by anyone given that your post contains very few details. ShowSomeEffort