Depends on how much you are willing to pay for the security certificate.
In fact what happens is that there are different levels of SSL certificates, and to illustrate I will use GoDaddy :
Standard Domain Validation SSL
Perfect for personal websites and blogs.
A simple certificate, all it does is encrypt data traffic between the client (visitor's browser) and the server. With this, you get the padlock and the browser will accept the protocol
Deluxe organization validation SSL
Ideal for informational websites only: education, non-profit organizations, etc.
These certificates serve to give more "tranquility" to the visitor, since with these a validation is required by the party issuing the certificate (for the case, GoDaddy) that the owner of the site is who he claims to be.
Premium Extended Validation SSL
Recommended for web stores. Presents the green address bar that buyers are looking for.
These certificates are more expensive, but they show the name of the entity that owns the domain, therefore they require the owner to prove who they say they are. With this you earn the "green bar" and the name you want to display, which is what you want to get.
What you want does not depend on programming, but on the certificate that you install on your site. This is because on the internet you can not trust anyone, so if you want to do delicate operations, there must be more filters that prevent you, for example, losing your money.