MDL-69166 core_payment: helper methods to get cost and to deliver order