Use common get_origin pattern for purchase request

issue4021
review13371002

--HG--
extra : rebase_source : 5671eaf50393d9bbeea7a9d90c97edea8eb50573