Implemented the Checkout function [Buyer]