Updated the old and broken api_key system

Added method to generate a checkout page url