Make get_checkout_code a method, not an attribute