How PG Works
A customer will place an order on the website, checkout from the cart
Customer will pay for the product, after that the transaction Id will generated by bank. then the merchant will transfer order information to the customers through payment gateway.
Transaction authorized or declined (depending on funds available in the customer’s account) by the issuing bank or card (VISA, MAESTRO, American Express, MASTER etc.) after the authentication process is successful.
Payment gateway sends a message of success and failure of transaction to the merchant.
At last bank settles to payment gateway and then the payment gateway settles the money to the merchant.