Fintech & Ecommerce

How to Integrate a Payment Gateway into a Website

Choose a reliable and competitive payment gateway service provider and find out how to work with them.

How to Integrate a Payment Gateway into a Website

Starting an e-commerce business requires receiving payments from your customers in a quick and secure way. Learn how to start accepting cards, digital wallets, and other payment options on your website.

Many small businesses that start trading over the internet postpone adding online payment means to their web-store. Surely, it’s possible to pay on delivery or transfer funds to the merchant’s bank account. Perhaps, in the beginning, customers will be fine with that. However, ultimately they’ll seek immediate transactions without extra fees to the mediators. Furthermore, when customers see a well-known payment processor form or a familiar wallet button at the check-out, the seller looks more trustworthy and professional to them.

Selection

To begin with, choose a reliable and competitive payment gateway service provider. You can find more information about some of them in our previous article.

Your web host, website builder, or software provider most definitely supports popular third-party payment applications that you can quickly implement. In many cases, it takes a ready-made plugin or a built-in integration and a few clicks. The software support site should have a list of compatible options. Check those first and learn more about them. Adding other alternatives will be technically more difficult. It will take longer too.

If you sell through a small catalog or take a handful of orders, you may not need a full integration at all. Many providers offer payment links and hosted payment pages that you can create from a dashboard and share by email, messenger, or social media. They work without any code.

If possible, choose a gateway that keeps the customer on your site. Embedded payment forms and hosted fields don’t send buyers to an external website to complete the transaction, and the card data still goes straight to the provider. The quicker the procedure is for the client the better. Let speed be your ally.

Some businesses go a step further and choose a white-label payment gateway. In this model, the provider supplies the payment technology, while the checkout, the merchant dashboard, and sometimes the domain carry the business’s own brand. It suits online platforms, marketplaces, and companies that process payments for other merchants or want full control over the payment experience. White-label solutions usually take longer to set up and cost more than standard gateways. Ask the provider who holds the licenses, who is responsible for compliance and customer verification, and who handles chargebacks. For a small web-store that is just starting out, a regular gateway is typically enough.

Check which payment methods the gateway supports. Cards are only part of the picture now. Apple Pay, Google Pay, and local options such as bank transfers and pay-by-bank services are popular with customers, and they cut the number of fields a buyer has to fill in. Pick the ones that are common among your audience.

Read the information about the fees and terms of use carefully. Choose a service that reflects your needs and goals. Avoid those gateways that charge clients extra service fees. Nobody likes hidden costs at the final stage of their purchase. Calculate all your expenses with the few chosen gateways, including fees for currency conversion, refunds, and chargebacks, and compare possible net profits and losses.

Application

It is only natural that the application process for a payment processor takes place online. Thankfully, you don’t need lots of hard copy paperwork to be able to accept payments over the internet. Many providers verify the business and its owners digitally and can approve an application within days. However, don’t forget to include all your business details in the written application form.

Different business forms need different payment solutions. Mention whether your enterprise is owned by a sole proprietor or a partnership, if it’s a corporation, LLC, or cooperative. The forms of business organizations are no less meaningful than the business types such as service business, merchandising business, manufacturing business, or a hybrid one.

Include your regional preferences. Some enterprises serve international clients while others concentrate on their native country. Perhaps, your business is aimed at specific locations. The payment processor providers need to know that to choose the best financial alternatives.

Legal details are also very important. Mention the jurisdiction of your business entity, the state where it is officially registered. Otherwise, you may face high commission fees as your transactions will be handled via a foreign bank. If you have a license, consider including its number too.

Financial volumes of your sales are essential for an adequate payment gateway. Specify the range of your money turnover, smallest and the biggest cheque sizes (at least approximate), and be ready to provide the processing history (not applicable to startups with no sales experience).

Be attentive to your website. Most payment service providers demand the webpages to comply with Visa and Mastercard requirements. Therefore, the websites must include such basic sections as: Terms & Conditions, Privacy Policy, Refund Policy, Contacts, etc. The PSPs need to make sure their customers and their personal data will be protected by the corporate rules. Reviewers also look at whether the products, prices, and delivery terms on the site are described clearly.

Some businesses must have age verification at their websites (for instance, adult content, gambling, financial services). The setup process isn’t possible without this feature. If you fall to this category, add it before applying.

Supporting documentation

The list of documents you need to attach to your application varies from one service provider to another. It is also different for various business types. However, the basic ones are usually the same.

  • a certificate of incorporation;
  • share certificate;
  • company extracts (will include: nomination of a director, owner details and registered address of the company);
  • POA (power of attorney) to act on behalf of the director of the business entity, if applicable;
  • the official settlement bank account which would be used for payments. The paper usually needs to show the bank’s name and logo, full address of the bank, and the IBAN numbers (IBAN number per currency you want to process in);
  • passports and the proof of the address of the directors and beneficiary. Many providers collect them through an online identity check, with a photo of the document and a selfie, instead of scans;
  • processing history;
  • proofs of domain ownership;
  • proof of the office address of the company;
  • proof of activities (copyright or supply agreements, licenses, etc.)

Incorporating payment gateway

Once you’ve done with the legal part, it’s time for a technical one. Setup of a payment gateway is quite easy.

You need to sign up for a merchant’s account, choose your login and password, turn on two-factor authentication, fill in some personal details, etc. Then you can choose an applicable pricing plan. The payment gateway will provide you with the necessary information for your online store software provider, usually a pair of API keys.

Generally, you need to enter your payment gateway information for each method of payment you intend to accept (Visa, Mastercard, Apple Pay, Google Pay, etc.). This can be done from your online store’s administration page. If your store runs on a popular platform, you will most likely install the gateway’s plugin, paste the keys, and switch on the payment methods you need.

Custom-built websites need a bit more work. The gateway’s documentation will show how to add either a hosted checkout page or embedded payment fields with the provider’s code library. Both options keep card numbers away from your own servers, which makes the security requirements for your business lighter. It is also wise to set up webhooks. These are automatic notifications from the gateway to your site, so every successful payment, refund, or failed charge updates the order status without manual checks.

Pay attention to security. Businesses that accept cards must follow the PCI DSS standard. The current version, 4.0.1, includes rules for the scripts on checkout pages. Ask your provider which part of the requirements they cover and which part remains on you. In addition, most gateways handle 3-D Secure, the extra step of customer authentication that banks request for many online card payments. Make sure it is enabled in your account.

Usually, the new stores are allowed some testing period. You are given some test or sandbox accounts by your payment gateway service. These allow you to perform fake transactions with test card numbers to ensure that the payment process is working correctly. It is a seller’s responsibility to test all the available payment methods beforehand, including declined payments, refunds, and the mobile version of the check-out. This way, you make sure that everything will go smoothly when you go live.

If you have doubts about some setup details or test transactions, contact support. They will gladly help you to bring your online store to perfection.

FAQ

What is a payment gateway?

A payment gateway is a service that securely passes payment details from a customer to the payment processor and returns the result of the transaction to your website. It lets a web-store accept cards, digital wallets, and other payment methods at the check-out.

Do I need a custom integration to accept payments online?

Not always. Most website builders and e-commerce platforms support popular gateways through ready-made plugins. Providers also offer payment links and hosted payment pages that work without any code. Custom-built websites usually need a hosted checkout page or embedded payment fields added with the provider's code library.

What documents are needed to apply for a payment gateway?

The list differs between providers and business types. Basic documents usually include a certificate of incorporation, company extracts, a settlement bank account document with IBAN numbers, identity documents and proof of address of the directors and beneficiaries, proof of domain ownership, and proof of business activities. Providers may also ask for processing history, except from startups with no sales yet.

What is a white-label payment gateway, and who needs it?

A white-label payment gateway is a solution where the provider supplies the payment technology, while the checkout and the merchant dashboard carry the business's own brand. It suits online platforms, marketplaces, and companies that process payments for other merchants. Small web-stores that are just starting out typically manage with a standard gateway.

How do I check that payments work before going live?

Use the sandbox or test account that the gateway provides. It allows you to run fake transactions with test card numbers. Test every payment method you plan to accept, including declined payments, refunds, and the mobile version of the check-out. Contact the provider's support if any setup detail or test result is unclear.

Nina Bobro
2293 Posts

Nina is passionate about financial technologies and environmental issues, reporting on the industry news and the most exciting projects that build their offerings around the intersection of fintech and sustainability.