Mutt
Professional
- Messages
- 1,457
- Reaction score
- 1,268
- Points
- 113
There are many credit card types in the world, such as Visa/Visa Electron, Mastercard, American Express (AMEX), JCB (Japan Credit Bureau), BankCard, China Union Pay, Diners Club Carte Blanche, Diners Club enRoute, Diners Club International, Diners Club US & Canada, Discover, Laser (debit card), Maestro (debit card), Solo (debit card), Switch (debit card). Each of the card types has its own unique 6 prefixs (digits). This is known as IIN (Issuer Identification Number). Credit card digit length are various from 12 - 19 digits, depends on the card type.
Can we make a code to identify a card type?
We can design the algorithm using Luhn algorithm and then code it with almost all programming/webprogramming languages to be a credit card digit validation tool. U can do this with Python, Perl, Delphi, C/C++, VB/VB.NET, PHP, AJAX, etc. I won't explain more about Luhn Algorithm, since it relates with mathematical. And I think you can understand it within several minutes.
dev.to
UNDERSTANDING MERCHANT ACCOUNT, PAYMENT GATEWAY AND THIRD-PARTY PAYMENT GATEWAY
Now you should have understood yet about credit card type and how to validate it (the digits) using your own great tool.
We'll take a look at the difference between merchant account, payment gateway, and third-party payment gateway.
E-Commerce Merchant Account
An e-Commerce merchant account allows any (or almost) online business (also known as an e-Business or e-Commerce business) to accept credit cards/debit cards, gift cards and other forms of payment cards online based on the CNP (card not present) transaction principals, including MOTO (mail order/telephone order) transactions.
e-Commerce merchant accounts can also be referred to as: online credit card payment accounts, online credit card processing accounts, credit card transaction accounts, and others.
An e-Commerce merchant can get an e-Commerce merchant account from a merchant bank or a merchant service provider in his/her local area (city, state, country) or in another country (offshore/international e-Commerce merchant account).
Payment Gateway
A payment gateway is an e-commerce application service provider service that authorizes payments for e-businesses, online retailers, bricks and clicks, or traditional brick and mortar.
It is the equivalent of a physical point of sale terminal located in most retail outlets. Payment gateway protects credit cards details encrypting sensitive information, such as credit card numbers, to ensure that information passes securely between the customer and the merchant and also between merchant and payment processor.
Third Party Payment Gateway
Third party processors are what e-Commerce merchants get when getting third party merchant accounts.
Basically, third party processors are connected via an additional secure payment gateway to a direct credit card payment processor.
A third party processor contributes to the work of the direct processor, sharing its expenses, i.e. paying much less.
Many third party processors make up a network of e-Commerce merchants sharing one secure direct merchant account.
The question is maybe: and how it works actually?
Okay, below performs procedures which used by the payment processor gateway to charge customer's credit card until there's full settlement of funding to the merchant.
You should really understand well these procedures.
A customer places order on website by pressing the 'Submit Order' or equivalent button, or perhaps enters their card details using an automatic phone answering service.
If the order is via a website, the customer's web browser encrypts the information to be sent between the browser and the merchant's webserver. This is done via SSL (Secure Socket Layer) encryption.
The merchant then forwards the transaction details to their payment gateway. This is another SSL encrypted connection to the payment server hosted by the payment gateway.
The payment gateway forwards the transaction information to the processor used by the merchant's acquiring bank.
The processor forwards the transaction information to the card association (i.e., Visa/MasterCard)
If an American Express or Discover Card was used, then the processor acts as the issuing bank and directly provides a response of approved or declined to the payment gateway.
Otherwise, the card association routes the transaction to the correct card issuing bank.
The credit card issuing bank receives the authorization request and sends a response back to the processor (via the same process as the request for authorization) with a response code. In addition to determining the fate of the payment, (i.e. approved or declined) the response code is used to define the reason why the transaction failed (such as insufficient funds, or bank link not available)
The processor forwards the response to the payment gateway.

The payment gateway receives the response, and forwards it on to the website (or whatever interface was used to process the payment) where it is interpreted and a relevant response then relayed back to the cardholder and the merchant.

The entire process typically takes 2-3 seconds

The merchant must then ship the product prior to being allowed to request to settle the transaction.

The merchant submits all their approved authorizations, in a "batch", to their acquiring bank for settlement.

The acquiring bank deposits the total of the approved funds in to the merchant's nominated account. This could be an account with the acquiring bank if the merchant does their banking with the same bank, or an account with another bank.

The entire process from authorization to settlement to funding typically takes 3 days.
There are many third-party payment gateways in the world today.
I'm sure most of you are familiar with Paypal, WorldPay, Verepay, Authorize.Net, Click2Buy, SagePay, PPI.Inc, 2CheckOut, GoogleCheckout, YahooWallet, CCBill, MoneyBooker, etc...
The conclusion is the merchant can choose between using its own payment gateway to process the transaction directly to the merchant's bank or using payment gateway from third-party payment gateway (with a "little fees" of course).
Can we make a code to identify a card type?
We can design the algorithm using Luhn algorithm and then code it with almost all programming/webprogramming languages to be a credit card digit validation tool. U can do this with Python, Perl, Delphi, C/C++, VB/VB.NET, PHP, AJAX, etc. I won't explain more about Luhn Algorithm, since it relates with mathematical. And I think you can understand it within several minutes.
Python Script: Validating Credit Card Number - Luhn's Algorithm
This article was originally published at PythonCircle.com. The Luhn algorithm, also known as the "mo...
dev.to
UNDERSTANDING MERCHANT ACCOUNT, PAYMENT GATEWAY AND THIRD-PARTY PAYMENT GATEWAY
Now you should have understood yet about credit card type and how to validate it (the digits) using your own great tool.
We'll take a look at the difference between merchant account, payment gateway, and third-party payment gateway.
E-Commerce Merchant Account
An e-Commerce merchant account allows any (or almost) online business (also known as an e-Business or e-Commerce business) to accept credit cards/debit cards, gift cards and other forms of payment cards online based on the CNP (card not present) transaction principals, including MOTO (mail order/telephone order) transactions.
e-Commerce merchant accounts can also be referred to as: online credit card payment accounts, online credit card processing accounts, credit card transaction accounts, and others.
An e-Commerce merchant can get an e-Commerce merchant account from a merchant bank or a merchant service provider in his/her local area (city, state, country) or in another country (offshore/international e-Commerce merchant account).
Payment Gateway
A payment gateway is an e-commerce application service provider service that authorizes payments for e-businesses, online retailers, bricks and clicks, or traditional brick and mortar.
It is the equivalent of a physical point of sale terminal located in most retail outlets. Payment gateway protects credit cards details encrypting sensitive information, such as credit card numbers, to ensure that information passes securely between the customer and the merchant and also between merchant and payment processor.
Third Party Payment Gateway
Third party processors are what e-Commerce merchants get when getting third party merchant accounts.
Basically, third party processors are connected via an additional secure payment gateway to a direct credit card payment processor.
A third party processor contributes to the work of the direct processor, sharing its expenses, i.e. paying much less.
Many third party processors make up a network of e-Commerce merchants sharing one secure direct merchant account.
The question is maybe: and how it works actually?
Okay, below performs procedures which used by the payment processor gateway to charge customer's credit card until there's full settlement of funding to the merchant.
You should really understand well these procedures.
There are many third-party payment gateways in the world today.
I'm sure most of you are familiar with Paypal, WorldPay, Verepay, Authorize.Net, Click2Buy, SagePay, PPI.Inc, 2CheckOut, GoogleCheckout, YahooWallet, CCBill, MoneyBooker, etc...
The conclusion is the merchant can choose between using its own payment gateway to process the transaction directly to the merchant's bank or using payment gateway from third-party payment gateway (with a "little fees" of course).
