MDL-69166 core_payment: Use promises instead of callbacks