Use common get_origin pattern for purchase request

issue4021
review13371002